Guest User

Untitled

a guest
Dec 14th, 2018
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. L=[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]]
  2.  
  3. L[0][0] = 5
  4.  
  5. L=[[5,0,0,0],[5,0,0,0],[5,0,0,0],[5,0,0,0]]
  6.  
  7. STOLBCI = STROKI = 20
  8.  
  9. def chernmatrix():
  10. return [[0 for _ in range(STOLBCI)]
  11. for _ in range(STROKI)]
  12.  
  13. import copy
  14.  
  15. # ...
  16.  
  17. stroki = 20
  18. while stroki > 0:
  19. K.append(copy.copy(L))
  20. stroki -= 1
Add Comment
Please, Sign In to add comment