Commit 47202cb0 by BellCodeEditor

save project

parent 4896252c
Showing with 16 additions and 4 deletions
...@@ -13,9 +13,14 @@ def new_input(): ...@@ -13,9 +13,14 @@ def new_input():
total.append(unit) total.append(unit)
print(total) print(total)
return total return total
jhg=new_input() jhg=new_input()
print(total) print(total)
a=0
for i in jhg: def sum():
a=a+1 a=0
for i in jhg:
a=a+1
return a
b=sum()
print(a) print(a)
\ No newline at end of file
import jhg
jhg.new_input()
c=jhg.sum()
c=str(c)
print("这位选手的总分为"+c)
\ 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