将unicode字符打印为字符串

时间:2017-11-20 23:49:01

标签: python python-2.7

我正在使用pynput获取tyoed字符,然后我想将其重新键入为字符串,例如“č”为“č”而非u'\ u010d' 我做错了什么?

file = STDIN.reopen('filename')
do_stuff
file.close

0 个答案:

没有答案