Advertisement
Guest User

dic

a guest
Feb 23rd, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. #!/usr/bin/python3
  2.  
  3.  
  4.  
  5.  
  6. def main():
  7.  
  8. counter=0
  9. ty=[0,10,20,30,40,50,60,70,80,90,100,110,120,130]
  10. dip={"q":"capo","age":"12"}
  11.  
  12. di=[]
  13.  
  14. for ii,off1 in enumerate(ty,start=0):
  15.  
  16. dip.update({'offset': str(off1)})
  17.  
  18. #dip["offset"]=off1
  19. di.append(dip)
  20.  
  21.  
  22.  
  23. print(di)
  24.  
  25.  
  26. if __name__ == "__main__":
  27.  
  28. main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement