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.
「\x61\x62\x63\x64\x65\x66」を印刷せずにPythonで「abcdef」に変換する関数を探しています
このタイプのエンコードASCII 16進数の適切な用語は何ですか?
>>> "\x61\x62\x63\x64\x65\x66".decode('ascii') u'abcdef'
次のメソッドを使用して、「\x61\x62\x63\x64\x65\x66」を Unicode 文字列に変換できますunicode。
unicode
unicode("\x61\x62\x63\x64\x65\x66")
出力: u'abcdef'