Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

bellcode / lesson10-4

  • This project
    • Loading...
  • Sign in
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 0a946c03 authored 2 years ago by BellCodeEditor's avatar BellCodeEditor
Browse files
Options
  • Browse Files
  • Download
  • Email Patches
  • Plain Diff

save project

parent 0f1aa2a7
Show whitespace changes
Inline Side-by-side
Showing with 13 additions and 9 deletions
  • diy3.py
  • quiz.py
diy3.py
View file @ 0a946c03
...@@ -14,3 +14,10 @@ def abc(): ...@@ -14,3 +14,10 @@ def abc():
return a return a
d=abc() d=abc()
print(d) print(d)
def abcd(money):
e=0
for i in money:
e=i+e
return e
bb=abcd(d)
print(bb)
\ No newline at end of file
This diff is collapsed. Click to expand it.
quiz.py
View file @ 0a946c03
try: def aa(x,y):
age=int(input('你今年几岁了?')) z=x+y
except: print(z)
print('要输入整数啊') aa(2,4)
else:
if age<18:
print('不可以喝酒哦')
print('程序结束')
\ No newline at end of file
This diff is collapsed. Click to expand it.
  • Write
  • Preview
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