Commit 547f0339 by BellCodeEditor

save project

parent d52689ea
Showing with 16 additions and 3 deletions
...@@ -2,9 +2,14 @@ def new(): ...@@ -2,9 +2,14 @@ def new():
total = [] total = []
while True: while True:
unit= input("请输入:") unit= input("请输入:")
if unit== ' ': try:
break if unit== ' ':
break
ew=int(unit)
except:
print("请输入数字哦!")
else: else:
total.append(unit) total.append(ew)
print("判断完成")
print(total) print(total)
new() new()
\ No newline at end of file
name="悟空"
print(name+",欢迎你")
a=1
q="you"
print(type(a))
print(type(q))
\ 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