Commit d7071a65 by BellCodeEditor

save project

parent d29205d7
Showing with 28 additions and 0 deletions
def BP():
try:
a=4/0
except:
print('除数不能为零')
else:
print('这段代码没问题')
finally:
print('不管如何我都要输出')
BP()
\ No newline at end of file
fill=open('name.text','w',encoding='utf-8')
fill.write('小绿:21\n')
fill.write('小黑:20\n')
fill.close()
with open('name.text','r',encoding='utf-8')as f:
a=f.read()
print(a)
小绿:21
小黑:20
def sb(a,b):
s=a*b
l=2*(s+b)
return s,l
print(sb(8,9))
\ 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