摘要:
五角星 1 import turtle 2 turtle.setup(600,550,200,200) 3 turtle.pensize(1) 4 turtle.fillcolor("red") 5 turtle.begin_fill() 6 for i in range(5): 7 turtle. 阅读全文
摘要:
1 #叠加等边三角形 2 import turtle 3 turtle.setup(600,500,200,200) 4 turtle.pensize(1) 5 for i in range(3): 6 turtle.fd(80) 7 turtle.left(120) 8 turtle.fd(40) 阅读全文
摘要:
1 import turtle 2 turtle.setup(500,450,200,200) 3 turtle.pensize(1) 4 turtle.seth(30) 5 for i in range(3): 6 turtle.fd(90) 7 turtle.right(120) 8 turtl 阅读全文
摘要:
1 a=eval(input()) 2 for i in [0,1,2,3,4]: 3 print(pow(a,i),end=" ") 4 print(pow(a,5)) 阅读全文
摘要:
1 name=input() 2 say=input() 3 print(name+",我想对你说,"+say) 阅读全文
摘要:
1 import turtle 2 turtle.setup(600,550,200,200) 3 turtle.pensize(1) 4 turtle.fillcolor("red") 5 turtle.begin_fill() 6 for i in range(5): 7 turtle.fd(2 阅读全文