上一页 1 ··· 3 4 5 6 7
摘要: ###当地时间 import time time.strftime('%Y-%m-%d %H:%M:%S',time.localtime(time.time())) from datetime import datetime time = datetime.now().strftime("%H:%M 阅读全文
posted @ 2021-04-15 16:26 半个程序猿Cohen_Lee 阅读(39) 评论(0) 推荐(0) 编辑
摘要: sql 截取字符串: 1、LOCATE(substr , str ):返回子串 substr 在字符串 str 中第一次出现的位置,如果字符substr在字符串str中不存在,则返回0; 2、POSITION(substr IN str ):返回子串 substr 在字符串 str 中第一次出现的位 阅读全文
posted @ 2021-04-12 15:40 半个程序猿Cohen_Lee 阅读(561) 评论(0) 推荐(0) 编辑
摘要: 在sql查询时将日期转为时间戳 from_unixtime(unix_timestamp('20170608111213', 'yyyyMMddHHmmss'), 'yyyy-MM-dd HH:mm:ss') NOW():当前日期时间 SELECT UNIX_TIMESTAMP(NOW()); 将日 阅读全文
posted @ 2021-04-10 13:59 半个程序猿Cohen_Lee 阅读(1549) 评论(0) 推荐(0) 编辑
摘要: 清华(常用): https://pypi.tuna.tsinghua.edu.cn/simple阿里云: https://mirrors.aliyun.com/pypi/simple/中科大: https://pypi.mirrors.ustc.edu.cn/simple/豆瓣: https://p 阅读全文
posted @ 2021-04-08 11:37 半个程序猿Cohen_Lee 阅读(70) 评论(0) 推荐(0) 编辑
摘要: import smtplibfrom email.header import Headerfrom email.mime.text import MIMETextfrom email.mime.multipart import MIMEMultipartfrom email.utils import 阅读全文
posted @ 2021-04-07 21:38 半个程序猿Cohen_Lee 阅读(78) 评论(0) 推荐(0) 编辑
摘要: import smtplibfrom email.header import Headerfrom email.utils import formataddrfrom email.mime.text import MIMETextfrom email.mime.multipart import MI 阅读全文
posted @ 2021-04-07 19:33 半个程序猿Cohen_Lee 阅读(89) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7