Commit 72da5a9c by BellCodeEditor

save project

parent 3e16082c
Showing with 22 additions and 0 deletions
def fac (n):
if n==1:
return 1;
else:
return n*fac(n-1)
num=int(input("请输入一个整数"))
res=fac(num)
print("%d的乘阶是5%d%(num,res)")
\ No newline at end of file
唧唧复唧唧,木兰当户织。不问机杼声,问闻女叹息。
问女何所思,问女何所忆。女亦无所思,女亦无所忆。
\ No newline at end of file
import turtle
pen=turtle.Pen()
Sc=turtle.Screen()
Sc.bgcolor("black")
colors=["red","yellow","green","blue"]
for i in range(900):
pen.forward(i)
pen.right(60)
pen.pencolor(colors[i%4])
turtle.done
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