Commit eddc92a6 by BellCodeEditor

save project

parent 51a4cd42
Showing with 20 additions and 9 deletions
file=open(r"C:\Users\Administrator\Desktop\text.txt",'w',encoding="utf-8")
file.write('jntm')
file.close()
\ No newline at end of file
def new_input():
total = []
list=[]
while True:
unit= input("请输入:")
if unit== 'q':
b = input("请输入数值")
if b == "q":
break
else:
total.append(unit)
print(total)
new_input()
\ No newline at end of file
try:
b = int(b)
except:
print("输入错误")
else:
list.append(b)
return list
def s(o):
zong =0
for i in o:
zong = zong+1
return zong #亻尔女子
\ 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