摘要: #二进制装换msg = "大家好"msg1 = msg.encode(encoding='utf-8')#转换成二进制print(msg1)msg2 = msg1.decode('utf-8') #把二进制转换回来print(msg2)''' python 3.6.2 '''''' 希望新学的朋友可 阅读全文
posted @ 2017-09-02 23:26 蜗牛·哥 阅读(3461) 评论(0) 推荐(0) 编辑
摘要: import sysprint(sys.path) #python 2 中报错 。。。。,打印的是绝对路径(***\\python\\lib\\site-packages# 第三方库,后退一级为标准库)'''import osos_sys = os.system("dir")print(" >",o 阅读全文
posted @ 2017-09-02 22:28 蜗牛·哥 阅读(437) 评论(0) 推荐(0) 编辑