# coding=utf-8
import codecs

if __name__ == '__main__':
cmdlist = ("Decode")
while True:
cmd = int(input('''input command:
-1:Quit
0:Decode
'''))
if cmd == -1:
break
elif cmd == 0:
name = b'\350\256\270\344\275\240\345\255\246\345\274\237'.decode('utf-8')
f = codecs.open("Decode.txt", "w", "utf-8")
f.write(name)
f.close()
print(name)
else:
print("cmd error")
continue

posted on 2018-08-03 16:48  c碰  阅读(152)  评论(0编辑  收藏  举报