随笔分类 -  PythonStudy

摘要:# 九九乘法表 for m in range(1,10): for n in range(1,m+1): print("{0}*{1}={2}".format(n,m,(n*m)),end="\t") print()#换行 # 1-100的总和,奇数项和,偶数项和 sum_all = 0 sum_o 阅读全文
posted @ 2023-10-20 10:22 1379号监听员" 阅读(51) 评论(0) 推荐(0) 编辑
摘要:import turtle#导包 turtle.showturtle()#显示箭头 turtle.write("hello world")#写字符串 turtle.forward(300)#前进300像素 turtle.color("red")#画笔颜色改为红色 turtle.left(90)#箭头 阅读全文
posted @ 2023-10-08 22:43 1379号监听员" 阅读(71) 评论(0) 推荐(0) 编辑

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