Commit c711771d by BellCodeEditor

auto save

parent 44fc8d6a
Showing with 11 additions and 5 deletions
with open("C:\\Users\\稚慧人生\\Desktop\\sdgg.txt",'r',encoding='utf-8') as sb1hlbw:
a=sb1hlbw.readliness()
for i in a:
print(i)
\ No newline at end of file
while True:
o=input("请输入图形:")
if o=='正方形':
a=int(input('正方形的长:'))
b=int(input('正方形的宽:'))
print('三角形面积是:',a*b)
if o=='三角形':
a=int(input('三角形的长:'))
b=int(input('三角形的宽:'))
print('三角形面积是:',a*b*0.5)
\ 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