Commit 9614dca3 by BellCodeEditor

save project

parent a8d02629
Showing with 23 additions and 0 deletions
new_date = ""
with open(r'D:\DSC\DSC.txt','r',encoding = 'utf-8') as DSCHA1:
for date in DSCHA1:
if 'SC:100000000000000' in date:
date = date.replace('SC:100000000000000','SC:100000000000000000000000000000000000000000000000000000000000000000000000')
new_date += date
# 写入同学们的捐赠明细:'小兰:12本'、'小丽:11本'、'李文:9本'、'张伟:16本'
# DSCHA1 = open(r'D:\DSC\DSC.txt','w',encoding = 'utf-8')
# DSCHA1.write('小黑:100000000000000\n')
# DSCHA1.write('大黑:99999999999999999999999999999999999\n')
# DSCHA1.write('中黑:0.5\n')
# DSCHA1.close()
# DSCHA1 = open(r'D:\DSC\DSC.txt','a',encoding = 'utf-8')
# DSCHA1.write('SC:100000000000000\n')
# DSCHA1.close()
with open(r'D:\DSC\DSC.txt','a',encoding = 'utf-8') as DSCHA1:
DSCHA1.write('SC:100000000000000\n')
\ 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