Avatar ·

Warum versteht das Python-Skript kein Unicode?

📁 Python, KI

"

Skript:

#! /usr/bin/env python    print ""Привет"" 

Gibt einen Fehler aus:

File ""./y.sh"", line 2  SyntaxError: Non-ASCII character '\\xd0' in file ./y.sh on line 2, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details

Was muss hinzugefügt werden, um dem Interpreter mitzuteilen, dass Unicode vorhanden ist?

"