Commit 56fa3978 by BellCodeEditor

save project

parent 949b77e8
import numpy as np
x=3
for i in range(64):
x=x**x
print(x)#因为卡崩了所以只运行了两行,但这还不是Graham
\ No newline at end of file
def gx(m,x,n):
if x>2:
result=gx(m,x-1,m)
for i in range(1,n-1):
print("gx=",x,i,result)
result=gx(m,x-1,result)
return result
#elif x==2:
# return g2(m,n)未完成
print(gx(3,3,3))
\ No newline at end of file
m=input("请输入一个三位整数")
print("个位:",m[2],"\n十位:",m[1],"\n百位:",m[0])
\ No newline at end of file
import turtle
p=turtle.Pen()
p.up()
p.goto(-100,100)
p.down()
for i in range(4):
p.forward(200)
p.right(90)
p.up()
p.goto(0,-50)
p.down()
p.fillcolor("blue")
p.begin_fill()
p.circle(50,360)
p.end_fill()
turtle.done()
\ No newline at end of file
x=9000000
part=0
p=1
for i in range(1,x,2):
part=part+p*(1/i)
p=-p
pie=4*part
print(pie)
\ 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