code_junkie

Textmate: How do I enter a repeated sequence of characters

Nov 14th, 2011
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. ------------------------------------
  2. TODO
  3. ------------------------------------
  4.  
  5. C-u 60 -
  6.  
  7. #!/usr/bin/python
  8. import sys
  9. commandLine = raw_input("")
  10. tmArgs = commandLine.split()
  11. numberOfArgs = len(tmArgs)
  12. for i in range(eval(tmArgs[0])):
  13. for j in range(1, numberOfArgs):
  14. sys.stdout.write(tmArgs[j])
  15.  
  16. 10 - =
  17.  
  18. -=-=-=-=-=-=-=-=-=-=
  19.  
  20. 6 -= (space)
  21.  
  22. -= -= -= -= -= -=
  23.  
  24. #!/usr/bin/python
  25. import sys
  26. import string
  27. commandLine = raw_input("")
  28. timesToPrint = eval(commandLine.split()[0])
  29. firstSpace = string.find(commandLine, " ")
  30. for i in range(timesToPrint):
  31. sys.stdout.write(commandLine[firstSpace + 1:])
Add Comment
Please, Sign In to add comment