mirror of
https://github.com/bendtherules/pytry.git
synced 2026-08-18 13:53:01 +00:00
All the previous files
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
f=open(r"E:\Babu\pytry\pyFun\base.py")
|
||||
count=0
|
||||
numb=[]
|
||||
for index,line in enumerate(f):
|
||||
if line.strip()=="" or line.strip().startswith("#") or line.strip().startswith("'''") or line.strip().startswith("@"):
|
||||
numb.append(index+1)
|
||||
count+=1;
|
||||
print str(numb)
|
||||
print "Total useless lines "+str(count)
|
||||
Reference in New Issue
Block a user