随笔分类 - python学习
摘要:python time模块记录 参考链接: https://www.runoob.com/python/python-date-time.html 13位时间戳转换 import time # 输入毫秒级的时间,转出正常格式的时间 def timeStamp(timeNum): timeStamp
阅读全文
摘要:tg机器人 tg机器人官方api文档 https://core.telegram.org/bots/api#getfile 实例代码 import requests, json, time, os class my_reboot(): def __init__(self): self.token =
阅读全文
摘要:subprocess笔记 ''' https://www.runoob.com/w3cnote/python3-subprocess.html 常用参数: args:shell命令,可以是字符串或者序列类型(如:list,元组) bufsize:缓冲区大小。当创建标准流的管道对象时使用,默认-1。
阅读全文
摘要:qqwry-py3使用记录 项目地址:https://github.com/animalize/qqwry-python3 说明 其实主要的是 qqwry.py文件和qqwry.dat 模块的其他详细使用参考项目地址 用法 from qqwry import QQwry q = QQwry() q.
阅读全文
摘要:pandas记录 ''' 资料 https://www.cnblogs.com/insane-Mr-Li/p/13231644.html https://blog.csdn.net/toshibahuai/article/details/79034829 ''' # encoding='utf-8'
阅读全文
摘要:BeautifulSoup模块 参考资料:https://www.cnblogs.com/hanmk/p/8724162.html 安装 pip install beautifulsoup4 基本使用 from bs4 import BeautifulSoup import requests url
阅读全文
摘要:base64 参考资料 https://blog.csdn.net/m0_37422289/article/details/82753260 str1 = "this is string example....wow!!!" # str3 转成bytes 的string str3 = str1.en
阅读全文
摘要:asyncio记录 参考资料如下: http://www.langzi.fun/Python%E5%8D%8F%E7%A8%8B.html 各种例子 https://www.cnblogs.com/cwp-bg/p/9590700.html async函数的各个方法 https://www.jian
阅读全文
摘要:AES_加密模块 参考连接 https://mp.weixin.qq.com/s?__biz=MzIwNDI1NjUxMg==&mid=2651262030&idx=1&sn=9fe47330bad26de7b5025a812aff476d&chksm=8d314821ba46c1375ca4eda
阅读全文
摘要:常用代码 re正则 ((2(5[0-5]|[0-4]\d))|[0-1]?\d{1,2})(\.((2(5[0-5]|[0-4]\d))|[0-1]?\d{1,2})){3} # 匹配ip https://www.jianshu.com/p/82886d77440c result = re.find
阅读全文