随笔分类 - python
摘要:pymysql 操作mysql数据库 openpyxl 操作excel表 连上mysql操作: 1、打开数据库 import pymysql db=pymysql.connect(host,user,password,database) 2、使用cursor()方法创建一个游标对象 cursor=d
阅读全文
摘要:import os,re,shutildef get_filelist(dir): t1='{"computerPlayId":' t2=' ,"computerPlayListArray": ' t3=', "propertyPlayId":"", "propertyPlayListArray":
阅读全文
摘要:iterable: __iter__或者__getitem__,能够返回iterator Iterator:next(),每次去的iterator中的一个元素 iteration :在一个数据容器中遍历它的成员的过程,就是iteration Generator:通过yield方法来遍历元素的函数,G
阅读全文
摘要:ipsddress.ip_address(address):将address装换为IPv4地址或IPv6d地址,address可以为字符串或整数,能自动判读字符串是否符合PV4或IPV6的规范,符合返回对应地址,不符合抛出异常,也能将一个整数转换为IPv4或IPV6的地址(小于2的32次方的数默认转
阅读全文
摘要:报错信息如下所示 排查原因:本地打开了filder,导致安装失败 关闭filder,重试,安装成功
阅读全文

浙公网安备 33010602011771号