上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 46 下一页
摘要: def generator_five(parm, num): """ 将列表切分成每5个来返回 :param parm: :return: """ length = len(parm) for i in range(0, length, num): yield parm[i:i + num] 阅读全文
posted @ 2021-01-14 20:01 那时一个人 阅读(872) 评论(0) 推荐(0)
摘要: 我的问题: 在项目中由于在做个py文件中定义了handlers,导致在项目中定义几次就会重复几次 正确的处理办法 只在一个文件中定义内容,然后在其他的py文件中引用即可 import os import logging from logging.handlers import TimedRotati 阅读全文
posted @ 2021-01-13 18:17 那时一个人 阅读(736) 评论(0) 推荐(0)
摘要: 可以设置cellsyle 的选项: def _setCellStyle(cellStyles, i, j, op, values): #new = CellStyle('<%d, %d>' % (i,j), cellStyles[i][j]) #cellStyles[i][j] = new ## m 阅读全文
posted @ 2021-01-05 16:26 那时一个人 阅读(880) 评论(0) 推荐(0)
摘要: 该代理工具与普通的代理工具如:squid ,有很大的区别,squid 只需要在服务器上安装服务就可以直接使用浏览器访问,但是v2fly 需要在服务器及本地电脑上安装,这一点相对普通的代理要麻烦一点。 v2fly 相对普通的代理,不容易被屏蔽,至少现在没有被屏蔽,比如某歌搜索引擎就无法使用squid代 阅读全文
posted @ 2020-12-29 23:36 那时一个人 阅读(2897) 评论(0) 推荐(0)
摘要: 安装完成后可以避免很多pip安装的错误 apt-get install libsasl2-dev python-dev libldap2-dev libssl-dev apt-get install build-essential python3-dev libssl-dev libffi-dev 阅读全文
posted @ 2020-12-29 09:37 那时一个人 阅读(222) 评论(0) 推荐(0)
摘要: INSERT INTO _fba_inventory (asin, store_id, total_qty) VALUES (2, 2, 1) ON CONFLICT (asin,store_id) DO UPDATE SET total_qty = 4, write_date=now(); -- 阅读全文
posted @ 2020-12-28 15:39 那时一个人 阅读(738) 评论(0) 推荐(0)
摘要: def select(self, sql, parm=None): self.cr.execute(sql, parm) list_header = [row[0] for row in self.cr.description] list_result = [[str(item) for item 阅读全文
posted @ 2020-12-25 10:37 那时一个人 阅读(1316) 评论(0) 推荐(0)
摘要: select * from starmerx_user_permission where (user_name,location_id,permission_type) not in (('xxx',315,'internal_in_sign')) 阅读全文
posted @ 2020-12-14 14:11 那时一个人 阅读(1490) 评论(0) 推荐(0)
摘要: 参考: https://www.sohu.com/a/318299941_571478 (3)执行带参数SQL 字符串用%s占位符 字典用%(key)s占位符 阅读全文
posted @ 2020-12-12 15:39 那时一个人 阅读(472) 评论(0) 推荐(0)
摘要: https://www.crifan.com/amazon_aws_api_basic_concerpt_and_logic/ 上边的教程不一定有用,还是直接看github项目吧,按照人家写的接口传参就可以了。 https://github.com/python-amazon-mws/python- 阅读全文
posted @ 2020-12-03 15:41 那时一个人 阅读(1618) 评论(0) 推荐(0)
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 46 下一页