#!/usr/bin/python3 # -*- coding: utf-8 -*- # 讨论钉钉免费群21745728 qq群144081101 567351477 # CreateDate: 2018-11-10 f = open("china-testing.github.io.txt","w+") for i in range(10): f.write("This is line %d\n" % (i+1)) f.close()