Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Python
Posted by: Cammy And
Added: Jun 21, 2020 4:05 AM
Views: 129
Tags: no tags
  1. with open('.txt', 'w') as f:
  2.     f.writelines("%s\n" % item for item in _list)