import subprocess
def _read():
a = []
while True:
new = input()
if new=='end':
break
else:
a.append(new)
return a
print('welcome, please input the list')
a = _read()
dot = input('please input the dot mark you want:')
fh = open(r'd:\hammers\temp.txt','w')
for i in a:
b = '%s%s'%(i,dot)
print(b)
fh.write(b)
fh.close()
subprocess.call(r'notepad d:\hammers\temp.txt')
def _read():
a = []
while True:
new = input()
if new=='end':
break
else:
a.append(new)
return a
print('welcome, please input the list')
a = _read()
dot = input('please input the dot mark you want:')
fh = open(r'd:\hammers\temp.txt','w')
for i in a:
b = '%s%s'%(i,dot)
print(b)
fh.write(b)
fh.close()
subprocess.call(r'notepad d:\hammers\temp.txt')