append_file.py 180 B

123456789
  1. import sys
  2. if __name__ == "__main__":
  3. file_path = sys.argv[1]
  4. with open(file_path, "a") as f:
  5. for text in sys.argv[2:]:
  6. f.write('{}\n'.format(text))