0

eventghost の python のスクリプトに問題があります:eg.globals.testは外部変数です

eg.globals.test = "test♥.png"

私のスクリプト:

Import Image

print eg.globals.test 

#test♥.png

picture = Image.open(eg.globals.test)
# IOError: [Errno 2] No such file or directory: test \u2665.png'

Python は ♥ を に変換し\u2665.pngます。エンコード、デコード、ユニコード機能を試しましたが、効果はありません。

4

0 に答える 0