随笔分类 - 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
阅读全文
摘要:import turtle#导包 turtle.showturtle()#显示箭头 turtle.write("hello world")#写字符串 turtle.forward(300)#前进300像素 turtle.color("red")#画笔颜色改为红色 turtle.left(90)#箭头
阅读全文