with open('test.txt', 'w') as f: f.write('\_')