generating multiple ordered files in python

Goal:

To generate =35= files named 'capitalsquiz1.txt', 'capitalsquiz2.txt'...'capitalsquiz35.txt'


**************
>>> for quizNum in range(35):
    quizFile=open('capitalsquiz%s.txt' %(quizNum +1), 'w')

**************

posted @ 2019-02-18 20:15  kaiming_ai  阅读(162)  评论(0编辑  收藏  举报