Commit 6fb0524b by BellCodeEditor

save project

parent ac8009c3
a=int(input("请输入确诊数A:")) a=int(input("请输入一个三位数: "))
a=int(input("请输入确诊数A:")) a=int(input("请输入一个三位数: "))
b=int(input("请输入死亡数B:")) b=a%10
c=int((a/10)%10)
d=int((a/100)%10)
print(b,c,d)
print("%0.3%") filel=open(r"C:\Users\lenovo\Desktop\wzm.txt",'w',encoding='utf-8')
\ No newline at end of file filel.write(str(b)+str(c)+str(d))
filel.close()
\ No newline at end of file
-- "a/\347\210\261\345\277\203.py/\347\254\254\345\233\233\351\242\230.py" def new_input():
def new_input():
a=[]
while True:
b=input("请输入数字:")
\ No newline at end of file
filel=open(r"C:\Users\lenovo\Desktop\xxxx.txt",'a',encoding='utf-8') new_date=''
filel=open(r"C:\Users\lenovo\Desktop\xxxx.txt",'a',encoding='utf-8') new_date=''
filel=open(r"C:\Users\lenovo\Desktop\xxxx.txt",'w',encoding='utf-8')
filel.write('小强:10本\n')
filel.write('李明:15本\n')
filel.write('小兰:12本\n') filel.write('小兰:12本\n')
filel.write('随机:12本\n') for date in filel:
filel.write('小明:11本\n') if '小强:10本'in a:
filel.close() date=date.replace('小强:10本','小强:11本' )
\ No newline at end of file print("在文件中")
filel.close()
#with open(r"C:\Users\lenovo\Desktop\xxxx.txt",'a',encoding='utf-8') as file:
#file.write('小兰:12本\n')
#with open(r"C:\Users\lenovo\Desktop\xxxx.txt",'r',encoding='utf-8') as file:
#print( file.read())
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