python - how do i make it so it well add ' and a extra number -


a = 1  = "'"  if "false" in payload_source:      while start == false:          payload = urllib2.urlopen(target + "+union+select+" + str(a) + "--")          print(target + "+union+select+" + str(a) + "--")          if "<buffer>1</buffer>" in payload_source:              print("lol")          else:             +=  

i want adds number not adding number changing 1 want adds 1 2 1,2 possable make loop adds numbers , 1,2,3,4,5,6,7,8,9

if want add numbers string, use list:

>>> mylist = [] >>> in range(1,10): ...     mylist.append(str(i)) >>> print ','.join(mylist) 1,2,3,4,5,6,7,8,9 

here append each number list mylist. use join() function, joins each element mylist together, separated comma.


Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -