摘要: python2的cgi程序 阅读全文
posted @ 2018-07-07 15:33 WY~记录 阅读(286) 评论(0) 推荐(0) 编辑
摘要: [TOC] 开发环境和工具 python工具 安装python Python 将被安装到 /opt/python2.7.9/bin,通过创建虚拟环境时 python=/usr/bin/python3.5 python参数指定版本路径 包管理: "pip" 虚拟环境: "virtualenv" , " 阅读全文
posted @ 2018-07-07 10:45 WY~记录 阅读(211) 评论(0) 推荐(0) 编辑
摘要: [TOC] 安装 初始配置 1.设置姓名和邮箱地址 会设置"~/.gitconfig"文件,可直接更改 global参数代表全局 2.提高命令输出可读性 3.查看配置 配置有系统配置,用户配置,项目配置,小覆盖大 4.配置默认推送 github账户 创建账户 注册地址: username创建ID,个 阅读全文
posted @ 2018-07-03 14:04 WY~记录 阅读(152) 评论(0) 推荐(0) 编辑
摘要: ` 兼容html 1. 段落:空行 换行:两个空格后回车 2. 标题: (1到6个) 3. 区块: 4. 倾斜: 内容 ,_内容_ 重点强调: 内容 ,__内容__ 删除线:~~内容~~ 5. 无序列表: ,+, 6. 有序列表:1. ,2. ,3. 7. 项中的多个段落:四个空格或tab缩进 8. 阅读全文
posted @ 2018-07-01 16:47 WY~记录 阅读(96) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*- """ Created on Sun Apr 22 16:27:35 2018 @author: MyPC """ def main(): ''' 对一个整数中的各个数字求和. input:number output:sum ''' numbere_str = i... 阅读全文
posted @ 2018-04-22 17:09 WY~记录 阅读(255) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*- """ Created on Sun Apr 22 16:27:37 2018 @author: MyPC """ def main(): ''' 计算小费. 公式: gratuity = subtotal * gratuity_rate total = gratuity + subtotal ... 阅读全文
posted @ 2018-04-22 17:08 WY~记录 阅读(177) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*- """ Created on Sun Apr 22 14:57:48 2018 @author: MyPC """ def main(): ''' 摄氏温度转为华氏温度. 公式:fathrenheiit=(9 / 5) * celsius + 32 input:celsius output:fat... 阅读全文
posted @ 2018-04-22 17:07 WY~记录 阅读(411) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*- """ Created on Sun Apr 22 16:20:42 2018 @author: MyPC """ def main(): ''' 将英尺转化为米数. 公式: 一英尺等于0.305米 ''' feet = eval(input("input feet:")) ... 阅读全文
posted @ 2018-04-22 17:06 WY~记录 阅读(843) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*- """ Created on Sun Apr 22 15:55:56 2018 @author: MyPC """ def main(): ''' 计算圆柱体的体积. 公式: area = radius * radius * π volume = area * length input:... 阅读全文
posted @ 2018-04-22 17:06 WY~记录 阅读(797) 评论(0) 推荐(0) 编辑
摘要: import turtle turtle.screensize(3024,2768)#屏幕 turtle.write("hello天朝",font=("华文琥珀",20,"normal"))#设定字体大小 turtle.showturtle()#显示 turtle.begin_fill() #开始填充 turtle.circle(100,steps=5)#多变形 turtle.color... 阅读全文
posted @ 2018-04-21 15:23 WY~记录 阅读(458) 评论(0) 推荐(0) 编辑