Commit 6fb86b34 by BellCodeEditor

auto save

parent cef09b8f
Showing with 8 additions and 4 deletions
r=float(input("请输入半径: "))
pi=3.1415
print("周长是:",round(pi*2*r,2),"面积是:",round(pi*r*r,2),"直径是:",round(2*r,2))
\ No newline at end of file
r=float(input("输入半径:"))
pi=3.1415
print("圆的周长:%.2f"%(2*pi*r),"圆的面积:%.2f"%(r*r*pi),"圆的直径:%.2f"%(2*r))
\ No newline at end of file
with open(r'C:\Users\Administrator\Desktop\tt.txt','r',encoding='utf-8')as a:
for i in a:
print(i)
\ 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