摘要: 问题 将字符串日期,转换为 datetime 对象以便在上面执行非字符串操作。 解决方案 使用Python的标准模块 datetime 可以很容易的解决这个问题。比如: from datetime import datetime text = '2018-11-21' a = datetime.st 阅读全文
posted @ 2021-12-21 18:43 佳宁 阅读(1013) 评论(0) 推荐(0) 编辑
摘要: 移动python目录后,执行python\Scripts下的exe程序,提示如下 Fatal error in launcher: Unable to create process using '"e:\myidle\python3\python.exe" "F:\MyIDLE\Python3\Sc 阅读全文
posted @ 2021-12-21 16:18 佳宁 阅读(502) 评论(0) 推荐(0) 编辑