会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
浪子无涯
导航
博客园
首页
新随笔
联系
订阅
管理
公告
2021年1月18日
2021.1.18 title:Login登入信息编写:for while和else语句、for和if判断语句;range函数、多次输入判断、断点编译
摘要: # DATE:2021.1.18 title:Login登入信息编写:for while和else语句、for和if判断语句;range函数、多次输入判断、断点编译 #range(开始值,结束值-1,步长)#方法一:输出1-100之间的奇数# for i in range(1,100,2):# pr
阅读全文
posted @ 2021-01-18 21:40 浪子无涯
阅读(114)
评论(0)
推荐(0)
2021年1月14日
DATE:2021.1.14 title:turtle模块
摘要: # DATE:2021.1.14 title:turtle模块 import turtle #导入turtle模块'''t = turtle.Pen()for x in range(360): t.forward(x) t.left(59)'''turtle.showturtle() #显示箭头tu
阅读全文
posted @ 2021-01-14 17:51 浪子无涯
阅读(103)
评论(0)
推荐(0)
# 2021.1.14 title:字符集:占位符 %S、%d、%f
摘要: # DATE:2021.1.14 title:字符集:占位符 %S、%d、%f'''%S=%string 字符型%d=%digit 数字%f=%float 浮点型带小数'''name = input("Name:")age = int(input("age:"))salary = input("sa
阅读全文
posted @ 2021-01-14 14:20 浪子无涯
阅读(339)
评论(0)
推荐(0)
2021年1月10日
while嵌套与end
摘要:
阅读全文
posted @ 2021-01-10 15:30 浪子无涯
阅读(155)
评论(0)
推荐(0)
DOS下运行Python文件方法
摘要:
阅读全文
posted @ 2021-01-10 12:00 浪子无涯
阅读(309)
评论(0)
推荐(0)
九九乘法表 while语句嵌套 str类型和\t制表符
摘要: a=1 while a<=9:b=1 # 注意b=1的位置while b<=a:print(b,"*",a,"=",a*b,end=" ") # end=" "用于连接,未满足条件同行显示b+=1print() #换行a+=1 a=1while a<=9: b=1 # 注意b=1的位置 while
阅读全文
posted @ 2021-01-10 11:14 浪子无涯
阅读(107)
评论(0)
推荐(0)
2021年1月8日
2021/01/08赋值运算符、逻辑运算符、while语句、while else语句、break 终止中断、continue 跳过当次继续执行、end=”” 连接下一行、print()换行
摘要: #运算符(赋值运算符) #1、赋值运算符:+、-、*、/、//、=、+=、**、% num=int(input("num=")) #等于 num+=2 print("num+2=",num) #加 num=num+2 num-=2 print("num-2=",num) #减 num=num-2 n
阅读全文
posted @ 2021-01-08 17:58 浪子无涯
阅读(104)
评论(0)
推荐(0)
2020/12/22 等于、赋值、del 函数、注释、int str类型转换 、input输入只输入字符串类型
摘要: 2020/12/22 等于、赋值、del 函数、注释、int str类型转换 、input输入只输入字符串类型 2020/12/22 python学习笔记 1、等于和赋值 =等号是赋值,==是等于 print("Hello,world!") print("Alex") print("Beijing"
阅读全文
posted @ 2021-01-08 08:49 浪子无涯
阅读(84)
评论(0)
推荐(0)