摘要: # 字符串和字节转换的两种方式 ```python # 字符串和字节转换的两种方式 -decode,encode -直接类型转换 -bytes格式的16进制,2进制,10进制的显示 # 字符串需要用encode,bytes格式需要用decode,但是有时候忘了 #可以直接进行强转 b1=bytes( 阅读全文
posted @ 2023-06-28 22:12 无敌大帅逼 阅读(118) 评论(0) 推荐(0)