解决python在windows中输出乱码

解决python在windows中输出乱码

QQ群:397745473

1
2
type='utf-8'
print('[+] 开始更新!'.decode(type))
1
2
3
4
5
6
7
def bytetohex(data):
if sys.version_info > (3, 0):
# Python 3 code in this block
return "".join("{:02X} ".format(c) for c in data)
else:
# Python 2 code in this block
return "".join("{:02X} ".format(ord(c)) for c in data)

QQ群:397745473

知识星球