¶TBD
- iterate two lists
1 | a1 = ['CHN', 'SG','MY'] |
- index with a list
1 | a1 = ['CHN', 'SG','MY'] |
- list to str
1 | a1 = ['CHN', 'SG','MY'] |
列表插入值:a[1:1] = [3,4]
保留首尾:a[1:-1]
- zip
1 | matrix = [[1, 2, 3] , [4, 5, 6]] |
1 | a1 = ['CHN', 'SG','MY'] |
1 | a1 = ['CHN', 'SG','MY'] |
1 | a1 = ['CHN', 'SG','MY'] |
列表插入值:a[1:1] = [3,4]
保留首尾:a[1:-1]
1 | matrix = [[1, 2, 3] , [4, 5, 6]] |