Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson6-5-2
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
d7071a65
authored
Jul 14, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
d29205d7
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
0 deletions
333.py
gm.py
name.text
s'u-evb4ou.py
333.py
0 → 100644
View file @
d7071a65
def
BP
():
try
:
a
=
4
/
0
except
:
print
(
'除数不能为零'
)
else
:
print
(
'这段代码没问题'
)
finally
:
print
(
'不管如何我都要输出'
)
BP
()
\ No newline at end of file
gm.py
0 → 100644
View file @
d7071a65
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
)
name.text
0 → 100644
View file @
d7071a65
小绿:21
小黑:20
s'u-evb4ou.py
0 → 100644
View file @
d7071a65
def
sb
(
a
,
b
):
s
=
a
*
b
l
=
2
*
(
s
+
b
)
return
s
,
l
print
(
sb
(
8
,
9
))
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment