会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
没有风的夜
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
3
4
5
6
7
2021年4月15日
时间函数
摘要: ###当地时间 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
阅读(40)
评论(0)
推荐(0)
编辑
2021年4月12日
mysql 截取字符串
摘要: 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
阅读(567)
评论(0)
推荐(0)
编辑
2021年4月10日
sql 时间戳
摘要: 在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
阅读(1583)
评论(0)
推荐(0)
编辑
2021年4月8日
国内镜像源
摘要: 清华(常用): 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
阅读(78)
评论(0)
推荐(0)
编辑
2021年4月7日
邮件自动化(类)
摘要: 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
阅读(79)
评论(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
阅读(93)
评论(0)
推荐(0)
编辑
上一页
1
···
3
4
5
6
7
公告