0

数年前に作成したファイルをデコードするスクリプトを作成しましたが、2 回目のデコード テストを行っているときに問題が発生しました。

私のコード:

#!/usr/bin/python
# -*- coding: utf-8 -*-
from decoder.encodings import *

#Toontown Online Encoded Script Decoder

"""
##########################################
# Decoder was built to decompile         #
# Team Pawz Multihack v2.0               #
##########################################
"""
input = "Text can be located here: http://pastebin.com/rdeAhyar ";
def decode():
    print input.decode('latin_1')
decode()

私が得るコードを実行すると

SyntaxError: 文字列リテラルのスキャン中に EOL

SyntaxError: 文字列リテラルのスキャン中に EOL

何かキーを押すと続行します 。. .

これが役立つ場合は、Panda3D 内で配布されているバージョンの Python を使用しています。

4

1 に答える 1