随笔分类 -  Python

1
摘要:http://blog.csdn.net/delphiwcdj/article/details/5746560 阅读全文
posted @ 2018-01-25 14:47 余***龙 阅读(211) 评论(0) 推荐(0) 编辑
摘要:python -m py_compile file.py 阅读全文
posted @ 2018-01-10 12:39 余***龙 阅读(353) 评论(0) 推荐(0) 编辑
摘要:http://blog.csdn.net/yifengfuxue/article/details/79015651 阅读全文
posted @ 2018-01-09 20:54 余***龙 阅读(368) 评论(0) 推荐(0) 编辑
摘要:http://blog.csdn.net/shijichao2/article/details/61940931 阅读全文
posted @ 2018-01-09 15:30 余***龙 阅读(104) 评论(0) 推荐(0) 编辑
摘要:http://blog.csdn.net/yasi_xi/article/details/38384047 阅读全文
posted @ 2018-01-08 11:31 余***龙 阅读(167) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/yjd_hycf_space/p/6880026.html 阅读全文
posted @ 2018-01-08 11:25 余***龙 阅读(181) 评论(0) 推荐(0) 编辑
摘要:https://www.jianshu.com/p/c635d3c798c2 阅读全文
posted @ 2018-01-08 10:53 余***龙 阅读(187) 评论(0) 推荐(0) 编辑
摘要:https://www.jianshu.com/p/8779eac7f313 阅读全文
posted @ 2018-01-07 16:56 余***龙 阅读(382) 评论(0) 推荐(0) 编辑
摘要:http://blog.csdn.net/dream_angel_z/article/details/45724515 阅读全文
posted @ 2018-01-07 12:08 余***龙 阅读(345) 评论(0) 推荐(0) 编辑
摘要:datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S') 阅读全文
posted @ 2017-12-28 09:35 余***龙 阅读(302) 评论(0) 推荐(0) 编辑
摘要:#coding:utf8 from smtplib import SMTP_SSL from email.header import Header from email.mime.text import MIMEText mail_info = { "from": "xxxx@qq.com", "t 阅读全文
posted @ 2017-12-27 15:02 余***龙 阅读(3143) 评论(0) 推荐(0) 编辑
摘要:http://www.ithao123.cn/content-41747.html http://www.th7.cn/system/lin/201703/205998.shtml 阅读全文
posted @ 2017-06-22 14:41 余***龙 阅读(745) 评论(0) 推荐(0) 编辑
摘要:http://blog.csdn.net/gz_liuyun/article/details/52778198 阅读全文
posted @ 2017-06-20 20:17 余***龙 阅读(116) 评论(0) 推荐(0) 编辑
摘要:http://www.linuxdiyf.com/linux/27910.html 阅读全文
posted @ 2017-06-20 18:38 余***龙 阅读(175) 评论(0) 推荐(0) 编辑
摘要:试过很多其他的都不行 http://www.centoscn.com/CentosBug/softbug/2017/0424/8737.html 阅读全文
posted @ 2017-06-12 16:23 余***龙 阅读(253) 评论(0) 推荐(0) 编辑
摘要:http://blog.csdn.net/u011630575/article/details/51204026 阅读全文
posted @ 2017-06-06 18:52 余***龙 阅读(137) 评论(0) 推荐(0) 编辑
摘要:文中为Python2.6.6,改为Python2.6即可,因为没有/usr/bin/python2.6.6,只有/usr/bin/python2.6 http://blog.csdn.net/jcjc918/article/details/11022345 阅读全文
posted @ 2017-06-06 18:43 余***龙 阅读(361) 评论(0) 推荐(0) 编辑
摘要:尝试了好多遍都不能成功,然后找到这个可以成功发送! #!/usr/bin/python#coding:utf-8 import smtplib from email.mime.text import MIMETextfrom email.utils import formataddrmy_sende 阅读全文
posted @ 2017-06-05 18:21 余***龙 阅读(183) 评论(0) 推荐(0) 编辑
摘要:正则表达式使用反斜杆(\)来转义特殊字符,使其可以匹配字符本身,而不是指定其他特殊的含义。这可能会和python字面意义上的字符串转义相冲突,这也许有些令人费解。比如,要匹配一个反斜杆本身,你也许要用'\\\\'来做为正则表达式的字符串,因为正则表达式要是\\,而字符串里,每个反斜杆都要写成\\。你 阅读全文
posted @ 2016-10-25 19:18 余***龙 阅读(3570) 评论(0) 推荐(0) 编辑
摘要:1.>>> d = {'x': 'A', 'y': 'B', 'z': 'C' } >>> for k, v in d.iteritems(): ... print k, '=', v ... y = B x = A z = C 2.>>> L = ['Hello', 'World', 'IBM', 阅读全文
posted @ 2016-08-12 14:39 余***龙 阅读(228) 评论(0) 推荐(0) 编辑

1
点击右上角即可分享
微信分享提示