liuguichao 最近的时间轴更新
liuguichao

liuguichao

V2EX 第 325316 号会员,加入于 2018-06-28 10:51:33 +08:00
liuguichao 最近回复了
2020-12-16 10:34:06 +08:00
回复了 uofa 创建的主题 酷工作 [中信建投证券(99 司) ] 量化开发,测试、运维多地多职位急招!
这么好的机会,没人关注?
全日制硕士,应该超过要求了! 但是个别公司就是这样,看第一学历,有点要求 211/985 本科,这个没办法,换别的公司就是了。
result_proxy = self.execute(sql, args)
id = result_proxy.lastrowid
方案一: 跨平台
APScheduler 可以用来写调度
https://pypi.org/project/APScheduler/
方案二: linux crontab
直接编辑配置文件即可满足要求
2019-08-01 13:37:56 +08:00
回复了 liuguichao 创建的主题 Python 字符串长度与数据库字符串长度不一样
@xpresslink 多谢!
总结一下:
使用 s.encode('string_escape')和 s.encode('unicode-escape'),可以获取 raw string,再取 len 就可以获得期望的字节长度。
需要注意的事项: 数据库中的 char(n)/varchar(n)/nchar(n)/nvarchar(n), n 指的是字符串的字节码表示长度,不是字符串的长度。
2019-07-16 13:01:14 +08:00
回复了 miniyao 创建的主题 Python Flask-SQLAlchemy 用 db.session.commit() 失败之后,事务会自动回滚吗?
有必要
2019-07-03 09:42:03 +08:00
回复了 jibabi 创建的主题 Python 求助 Python multiprocessing 守护进程为什么不允许有子进程?
Note that a daemonic process is not allowed to create child processes. Otherwise a daemonic process would leave its children orphaned if it gets terminated when its parent process exits. Additionally, these are not Unix daemons or services, they are normal processes that will be terminated (and not joined) if non-daemonic processes have exited.
2019-06-05 17:45:02 +08:00
回复了 duyuyouci 创建的主题 Python 使用 sqlalchemy 和 celery 异步处理数据库查询时,时不时会报错
还有一种可能,遍历 ResultProxy 记录之前,需要先判断一下是否有返回行,直接 for 遍历会出错。
https://docs.sqlalchemy.org/en/13/core/connections.html?highlight=resultproxy#sqlalchemy.engine.ResultProxy.returns_rows

returns_rows
True if this ResultProxy returns rows.
I.e. if it is legal to call the methods fetchone(), fetchmany() fetchall().
2019-06-05 13:32:34 +08:00
回复了 duyuyouci 创建的主题 Python 使用 sqlalchemy 和 celery 异步处理数据库查询时,时不时会报错
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   4945 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 15ms · UTC 09:41 · PVG 17:41 · LAX 02:41 · JFK 05:41
Developed with CodeLauncher
♥ Do have faith in what you're doing.