Line number script for easy adding linenumbers
This commit is contained in:
parent
d3f5000dad
commit
7dd3b3b0a0
1 changed files with 10 additions and 0 deletions
10
linenumbers.py
Normal file
10
linenumbers.py
Normal file
|
@ -0,0 +1,10 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
i = 1
|
||||
while True:
|
||||
try:
|
||||
line = input("")
|
||||
except EOFError:
|
||||
break
|
||||
print("%3d. %s" %(i,line))
|
||||
i+=1
|
Loading…
Reference in a new issue