摘要: 编码 Python3中,str类型数据在内存中是以unicode编码方式存在的。 但Unicode编码的数据无法用于文件传输,传输时需要将其转换为bytes类型数据,然后再用其他编码方式编码如:utf-8、gbk等 # -*- coding: UTF-8 -*- s = '你好' #unicode编 阅读全文
posted @ 2020-12-13 16:46 invincible~ 阅读(108) 评论(0) 推荐(0)
摘要: imort requests if 0: postData = {'username': 'admin', 'password': '123456'} url = 'http://220.249.52.133:42725/check.php' r = requests.post(url=url, d 阅读全文
posted @ 2020-12-13 16:09 invincible~ 阅读(56) 评论(0) 推荐(0)