随笔分类 -  Python

摘要:import turtle import math def p_line(t, n, lenght, angle): for i in range(n): t.fd(lenght) t.lt(angle) def polygon(t, n, length): angle = 360 / n p_line(t, n, length, an... 阅读全文
posted @ 2019-03-01 15:36 Cheney& 阅读(1729) 评论(0) 推荐(0)
摘要:import smtplib from email.header import Header from email.mime.text import MIMEText # 第三方 SMTP 服务 mail_host = "smtp.163.com" mail_user = "xxx@163.com" mail_pass = "passwd" sender = 'xxx@163.com' re... 阅读全文
posted @ 2018-05-15 13:44 Cheney& 阅读(227) 评论(0) 推荐(0)
摘要:Python进度条 阅读全文
posted @ 2017-11-17 10:11 Cheney& 阅读(286) 评论(0) 推荐(0)
摘要:恐龙游戏 抛硬币游戏 阅读全文
posted @ 2017-11-08 10:42 Cheney& 阅读(327) 评论(0) 推荐(0)
摘要:运行后扫二维码登陆webwechat,等待返回结果 #源码于知乎,侵删 阅读全文
posted @ 2017-10-15 13:18 Cheney& 阅读(2190) 评论(1) 推荐(0)
摘要:判断 windows网络配置信息调用 心形字符集 阅读全文
posted @ 2017-10-15 13:10 Cheney& 阅读(216) 评论(0) 推荐(0)
摘要:sys模块 1 import sys 2 3 sys.argv #命令行参数List,第一个元素是程序本身路径,答应当前的相对路径 4 sys.exit(n) #退出程序,正常退出时exit(0) 5 sys.version #获取Python解释程序的版本信息 6 sys.maxint #最大的I 阅读全文
posted @ 2017-10-12 12:55 Cheney& 阅读(246) 评论(0) 推荐(0)