Commit 6a9fc178 by BellCodeEditor

auto save

parent 71958b82
Showing with 0 additions and 33 deletions
# def new_input():
# total = []
# while True:
# unit= input("请输入:")
# if unit== 'q':
# break
# else:
# try:
# unit = int(unit)
# except:
# print("我告诉你,你要是不输入整数王宣就没了")
# else:
# total.append(unit)
# return total
# wx = new_input()
# print(wx)
# def sum(n):
# count = 0
# for i in n:
# count+=1
# return count
# wx = new_input()
# money = sum(wx)
# print("价钱是"+str(money))
file = open("C:\\Users\\5H\\Desktop\\text.txt","a",encoding='utf-8')
file.write("小兰:12\n")
file.write("小强:10\n")
file.write("李明:15\n")
file.close()
\ 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