2019年9月21日

git软件上传问题命令

摘要: 简易的命令行入门教程: 平时已有仓库: git status git add . git commit -m "描述情况" git push origin master 完成 Git 全局设置: git init #初始化 git config --global user.name "yeers" 阅读全文

posted @ 2019-09-21 11:03 yeers 阅读(171) 评论(0) 推荐(0) 编辑

2019年9月18日

git 软件

摘要: #下载 git init #初始化 bash: y: command not found lenovo@LAPTOP-KCQUT905 MINGW64 /d/homework (master)$ git config -global user.email "632763953@qq.com"erro 阅读全文

posted @ 2019-09-18 16:23 yeers 阅读(1866) 评论(0) 推荐(0) 编辑

python_day1 _learning

摘要: https://gitee.com/old_boy_python_stack_21里边查找# 1.计算机的初步认识 ### 硬件(CPU,显示器,硬盘等) ### 操作系统(windows,Mac等) ### 解释器 ### 软件(360,QQ等) ### 人 # 2.解释器安装 Python2,2 阅读全文

posted @ 2019-09-18 15:44 yeers 阅读(137) 评论(0) 推荐(0) 编辑

#输入一段字符串 请显示有多少个数字?

摘要: #输入一段字符串 请显示有多少个数字?value = input("请输入一段字符:")pel = len(value) # 知道输入了多少个字符 用lennum = 0v = 0while True: val = value[num] #每个字符是什么 flag = val.isdigit() # 阅读全文

posted @ 2019-09-18 14:50 yeers 阅读(254) 评论(0) 推荐(0) 编辑

2019年9月13日

字符串:大小写 去空格替换切割

摘要: #.lower 转化成小写字符串a = input(">>>")a1 = a.lower()print(a1) #.upper 转化成大写字符串a = input(">>>")print(a.upper()) #.isdigit 检查是否是十进制数字a = input(">>>")a1 = a.is 阅读全文

posted @ 2019-09-13 13:18 yeers 阅读(244) 评论(0) 推荐(0) 编辑

#用户登录(三次错误机会)而且每次输入错误时显示剩余机会

摘要: #用户登录(三次错误机会)而且每次输入错误时显示剩余机会count = 3while 0< count <=3: print("还有%s次机会" % (count)) name = input('姓名:') if name == "yeers": print('成功') break else: co 阅读全文

posted @ 2019-09-13 11:25 yeers 阅读(257) 评论(0) 推荐(0) 编辑

2019年9月12日

习题20190912001

摘要: 阅读全文

posted @ 2019-09-12 17:48 yeers 阅读(82) 评论(0) 推荐(0) 编辑

python运算符优先级

摘要: 阅读全文

posted @ 2019-09-12 17:33 yeers 阅读(94) 评论(0) 推荐(0) 编辑

python基础

摘要: pythn print格式化输出。 %r 用来做 debug 比较好,因为它会显示变量的原始数据(raw data),而其它的符号则是用来向用户显示输出的。 1. 打印字符串 效果: 2.打印整数 效果: 3.打印浮点数 效果: 4.打印浮点数(指定保留小数点位数) 效果: 5.指定占位符宽度 效果 阅读全文

posted @ 2019-09-12 17:28 yeers 阅读(122) 评论(0) 推荐(0) 编辑

猜年龄 三次后询问是否继续猜

摘要: #猜年龄#如果三次猜不中 就询问是否继续猜 回答Y 继续猜 回答N 则退出count = 1while count <= 3: v1 = 4 - count print('还有%s次机会'%(v1)) age = input('请输入你猜的年龄:') age = int(age) if age == 阅读全文

posted @ 2019-09-12 15:55 yeers 阅读(229) 评论(0) 推荐(0) 编辑

导航