发布时间:2019-08-11 11:26:28编辑:auto阅读(1989)
print "Welcome to run"
print "Please input num"
print "1 stand for 矩形"
print "2 stand for 圆"
print "3 stand for 正方形"
s=int(input("Please input U num:"))
if s == 1:
print "input 长度:"
print "input 宽度:"
a=int(input("长度:"))
b=int(input("宽度:"))
x=a*b
print x
elif s == 3:
print "input 正方形边长"
v=int(input("边长:"))
z=v*v
print v
elif s == 2:
print "input 值:"
c=int(input("半径:"))
d=c*c*3.14
print d
else:
print "OH no! Please input 1-3"
上一篇: python线程、协程
下一篇: python读文件
50494
49795
40395
37414
31832
28693
27625
22408
22408
20723
480°
1095°
896°
833°
1078°
954°
1568°
2935°
2609°
2008°