# 第一问
print('###------ -----###')
print('||Nice to meet you!!!')
print('###----- ------###')
# 第二问
import math
v0 = 1
g = 1
o = 1
y0 = 1
x = 1
y = math.tan(o)-1/2*v0*g*x*x/math.cos(2*o)+y0
print(y)
什么时候程序员,写这么几个题就值5块钱了,苦笑
str=input()
str="|| "+str+" ||"
str1="###"
print(str1,'-'*(len(str)-6),str1,sep='')
print(str)
print(str1,'-'*(len(str)-6),str1,sep='')
def y(v0,g,O,x,y0):
y= x*math.tan(O)-(1/2*v0)*(g*x**2/math.cos(2*O))+y0
return y
print (y(20,10,30,1,1))
s = 0
result = 0
for n in range(0, 60):
s += (-1)**n / (2*n+1)
result = s*4
print('累积%d项是 %f' % (n,result))
按照你的公式来,我打死也不知道怎么计算出3.10+的,太难了