Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- f = open(filename + '.txt', 'w')
- chars_to_replace = ['/', ':', '>', '<', '"', '\\', '|', '?', '*']
- for item in input_list:
- f.write("%s\n" % item.replace(chars_to_replace, "_"))
- f.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement