蟒蛇
import turtle as t1
t1.setup(650,350,200,200)
t1.up()
t1.fd(-300)
t1.down()
t1.pensize(25)
t1.pencolor('red')
t1.seth(-50)
for i in range(6) :
t1.circle(50,80)
t1.circle(-50,80)
t1.circle(50,100/2)
t1.fd(50)
t1.circle(20,360)
t1.fd(50 * 2/3)
t1.done()
九九乘法表1
for row in range(1,10):
for co1 in range(1,row+1):
print("{0}*{1}={2:2d}".format(row,co1,row*co1),end=" ")
print(" ")
九九乘法表2
for row1 in range(1,10):
for col1 in range(row1,10):
print("{0}*{1}={2:2d}".format(row1,col1,row1*col1),end=" ")
print(" ")
九九乘法表3
for row2 in range(9,0,-1):
for block2 in range(9,row2,-1):
print(end=" ")
for col2 in range(row2,0,-1):
print("{0}*{1}={2:2d}".format(row2,col2,row2*col2),end=" ")
print(" ")
九九乘法表4
for row3 in range(9,0,-1):
for block3 in range(0,row3-1):
print(end=" ")
for col3 in range(9,row3-1,-1):
print("{0}*{1}={2:2d}".format(row3,col3,row3*col3),end=" ")
print(" ")