当我在 python 中“打印”一些十六进制字符串,一些有趣的错误信息时,我想知道为什么会导致这个错误。Win10(我在ubuntu上试过,没有错误),python 2.7enc_hex = '''f982f01c'''enc_ascii = enc_hex.decode('hex')print(enc_ascii)Traceback (most recent call last): File ".\xxxx.py", line 7, in <module> print(enc_ascii)IOError: [Errno 2] No such file or directory好吧,其实我想知道为什么“打印”一组特殊的十六进制会导致文件操作,其他十六进制字符串不会出错
添加回答
举报
0/150
提交
取消