Python第3享:出現unexpected indent報錯的幾種原因?

何慶華發表於2020-11-09

1、實現目標

The following languages have been mentioned:
Python
C
Ruby

2、案例

 

3、原始碼

favorite_languages={
	'jen':'python',
	'sarah':'c',
	'edward':'ruby',
	'phil':'python',
	}

	print("The following languages have been mentioned:")
	for language in set(favorite_languages.values()):
		print(language.title())

4、原因?

 

相關文章