#python
18610508486@163.com
python
2012pythonLinux
shell
##
##
##
Computational Thinking
Jeannette M. Wing
##
#python
1python2
2
3
4python
django
:
1,2,3,4,5,6,7,8,9,10
for i in range(1, 11):
print str(i) + ",",
1, 2, 3, 4, 5, 6, 7, 8, 9, 10,
if
1,2,3,4,5,6,7,8,9,10
n = 10
for i in range(1, n+1):
if i < n:
print str(i) + ",",
else:
print str(i)
M100
,
# coding:utf-8
"""
python
:qq:1465376564
"""
with open('dist_1.txt','r') as f1 ,open('dist_new.txt','w') as f2:
i = 0
for line in f1:
i += 1
if i % 100 == 0:
f2.write(line)
2000100200
while
#coding:utf-8
i = 0
file1 = open("test.txt","r")
file2 = open("out.txt","w")
while True:
line = file1.readline()
i += 1
if 100