1 2 3 4 5 6 7 8 9
#!/usr/bin/env python3 import sys ofile = sys.argv[1] num = sys.argv[2] with open(ofile, 'w') as f: f.write(f'res{num}\n')