Commit 07bc1f5c by BellCodeEditor

auto save

parent 73b73c26
Showing with 993 additions and 0 deletions
#h=input("输入一个华氏度")
#print((int(h)-32)/1.8)
# r=float(input("输入半径:"))
# print("半径r的周长是%.2f,面积是%.2f" % (2*3.14*r,3.14*r*r))
# a=float(input("输入华氏度:"))
# b=(a-32)/1.8
# print("华氏度%f 摄氏度%f" % (a,b) )
r=float(input("输入圆的半径:"))
zhochang=r*2*3.14
mianji=3.14*r*r
print("周长=%.2f 面积=%.2f" % (zhochang,mianji))
\ No newline at end of file
r=input("输入半径:")
r=input("输入半径:")
w=3.14
print("2*w","w r*4")
\ No newline at end of file
a=100 # 整数
a=100 # 整数
b=12.345 # 浮点数
d='123' # 字符串
e=True # 一个字符
print(float(d))
print(type(b))
print(type(d))
print(type(e))
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