Non-UTF-8 code starting with '\xfc'
Verfasst: Sonntag 16. August 2015, 16:28
Hallo Gemeine, der folgende Python Code generiert bei mir eine Fehlermeldung:
Wisst ihr vielleicht warum dem so ist?
Dankeschön und viele Grüße
Andreas
File "C:\Users\Andi\workspace\OnlyATest\src\Test.py", line 13
SyntaxError: Non-UTF-8 code starting with '\xfc' in file C:\Users\Andi\workspace\OnlyATest\src\Test.py on line 13, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
Code: Alles auswählen
'''
Created on 16.08.2015
@author: Andi
'''
en_de = {'red' : 'rot'}
colour = input("Farbe? ")
if colour in en_de:
print("Die Farbe " + colour + " ist ein Schlüssel")
print("Der deutsche Wert für " + colour + " ist " + en_de[colour])
Dankeschön und viele Grüße
Andreas