Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私の開発環境は次のとおりです。Eclipse + pydev。
raw_input() で文字を取得する場合、「你好世界」と入力すると、「浣犲ソ涓栫晫」となります。では、どうすれば「你好世界」を取得して正しく印刷できますか。
raw_input().decode(sys.stdin.encoding) を試しましたが、結果は同じです。
端末/コンソールのコード ページを使用してデコードします。
import sys t = raw_input().decode(sys.stdin.encoding) print t