skr51_default.py 350 B

123456789101112
  1. topics1 = ['MAR', 'STA']
  2. topics2 = ['KST', 'ABS', 'KTR']
  3. accounts = []
  4. for t in topics1:
  5. accounts += [t + '_' + str(i).zfill(2) + ';n.v.\n' for i in range(10)]
  6. for t in topics2:
  7. accounts += [t + '_' + str(i).zfill(2) + ';n.v.\n' for i in range(100)]
  8. with open('Kontenrahmen_Merkmale.csv', 'w') as f:
  9. f.writelines(accounts)