python for 循环值 保留问题

m=0
for i in xrange(5):
    for j in xrange(4):
        print j
        for k in xrange(3):
            m=m+1
            print k
print '-----------------'
print m

C:\Python27\python.exe C:/Users/TLCB/PycharmProjects/untitled/core/a26.py
0
0
1
2
1

2
-----------------
60



 

你可能感兴趣的:(python,脚本库)