Skip to content

Commit b022ad1

Browse files
committed
Add create_file.py
1 parent 27fd06c commit b022ad1

2 files changed

Lines changed: 19 additions & 0 deletions

File tree

python3.7quick/6create_file.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/python3
2+
# -*- coding: utf-8 -*-
3+
# 讨论钉钉免费群21745728 qq群144081101 567351477
4+
# CreateDate: 2018-11-10
5+
6+
f= open("china-testing.github.io.txt","w+")
7+
for i in range(10):
8+
f.write("This is line %d\r\n" % (i+1))
9+
f.close()

python3.7quick/china-testing.github.io.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
This is line 1
2+
This is line 2
3+
This is line 3
4+
This is line 4
5+
This is line 5
6+
This is line 6
7+
This is line 7
8+
This is line 8
9+
This is line 9
10+
This is line 10

0 commit comments

Comments
 (0)