Commit 9bc017fc by BellCodeEditor

save project

parent 7dcfb1cc
Showing with 11 additions and 9 deletions
#导入模块
import turtle
# pen=turtle.Pen()
# pen.write("你好呀!",font=("Times",20,"normal"))
# turtle.down
pen1=turtle.Pen()
pen1.circle(50)
turtle.down
pen1
def peach(n):
if n == 10:
return 1
num = (peach(n+1)+1)*2
return num
peach_num = peach(6)
print(peach_num)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment