How to make matrices in Python?

前端 未结 6 1189
闹比i
闹比i 2020-12-31 20:23

I\'ve googled it and searched StackOverflow and YouTube.. I just can\'t get matrices in Python to click in my head. Can someone please help me? I\'m just trying to create a

6条回答
  •  难免孤独
    2020-12-31 21:17

    you can do it short like this:

    matrix = [["A, B, C, D, E"]*5]
    print(matrix)
    
    
    [['A, B, C, D, E', 'A, B, C, D, E', 'A, B, C, D, E', 'A, B, C, D, E', 'A, B, C, D, E']]
    

提交回复
热议问题