摘要: 字符类型转换msg = "我爱你"print(msg.encode()) #字符串类型转成二进制类型(bytes)print(msg.encode(encoding="utf-8").decode(encoding="utf-8"))程序运行结果: -------------------------------------------------------------------... 阅读全文
posted @ 2018-07-20 10:38 JesseChan132019 阅读(239) 评论(0) 推荐(0)