from sys import argv
script,filename=argv
print('脚本名字',script)
print('文件名字',filename)
txt=open(filename,'r+')
print(txt.read())
txt.truncate()
line1=input('第一行?')
line2=input('第二行?')
line3=input('第三行?')
txt.write('%s\n%s\n%r'%(line1,line2,line3))
print(txt.read())
txt.close()