随笔分类 -  python

摘要:import os import shutil import configparser import struct #全局变量,整个周期都要使用 manufacture = 'default' index_manufacture = 1 length_manufacture = 0 #配置文件解析函 阅读全文
posted @ 2020-11-06 10:21 hostid 阅读(281) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/loleina/p/5276918.html 阅读全文
posted @ 2020-11-05 22:57 hostid 阅读(95) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/longshaonihaoa/article/details/105679517 阅读全文
posted @ 2020-11-05 16:47 hostid 阅读(4496) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/qq_34745295/article/details/79438774 读配置文件,将某个字串对应的asciic码写入bin文件 import configparser import struct #加载现有配置文件 conf=configparser. 阅读全文
posted @ 2020-11-04 23:11 hostid 阅读(279) 评论(0) 推荐(0) 编辑
摘要:1、pack把指定的数据类型打包为bytes字节型,unpack按照指定的格式解析响应的数据 https://blog.csdn.net/abc_12366/article/details/80211953 2、python中内置的数据类型强制转换 pi = 3.14 print('pi:', in 阅读全文
posted @ 2020-11-04 22:46 hostid 阅读(315) 评论(0) 推荐(0) 编辑
摘要:1、字符串前加 u 例:u"我是含有中文字符组成的字符串。" 作用: 后面字符串以 Unicode 格式 进行编码,一般用在中文字符串前面,防止因为源码储存格式问题,导致再次使用时出现乱码。 2、字符串前加 r 例:r"\n\n\n\n” # 表示一个普通生字符串 \n\n\n\n,而不表示换行了。 阅读全文
posted @ 2020-10-26 23:58 hostid 阅读(169) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/aic1999/article/details/80390454 https://www.cnblogs.com/hyyq/p/8995372.html https://blog.csdn.net/fjsd155/article/details/79380 阅读全文
posted @ 2019-11-01 14:48 hostid 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-10-25 12:12 hostid 阅读(223) 评论(0) 推荐(0) 编辑
摘要:``` import os import sys import struct import binascii import xlwt def ParseData(parsebytes): i=0 j=1 data_len=len(parsebytes) while(i 阅读全文
posted @ 2019-10-25 11:37 hostid 阅读(2116) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/qq_21644175/article/details/79966397?utm_medium=distribute.pc_aggpage_search_result.none-task-blog-2~all~first_rank_v2~rank_v25- 阅读全文
posted @ 2019-10-24 09:32 hostid 阅读(2135) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/fat39/p/7159881.html https://blog.csdn.net/powerdoom/article/details/62218516 Python进制转换和补零 https://blog.csdn.net/iridescent_m 阅读全文
posted @ 2019-10-23 22:06 hostid 阅读(373) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/weixin_41084236/article/details/81564963 //一个搞python的博主 阅读全文
posted @ 2019-10-22 22:08 hostid 阅读(100) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/kakakaco/article/details/94929396 https://www.cnblogs.com/shenshangzz/p/8318143.html https://www.cnblogs.com/python nameless/p/7 阅读全文
posted @ 2019-10-22 21:43 hostid 阅读(170) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示