怎么将Python文字转化成3X4的矩阵,排列?

# 将Python文字转化成3X4的矩阵
s = '''1 2 3 a b c せ び ¥ 你 我 他'''

# print 打印

'''
123
abc
せび¥
你我他
'''
.
c=0
for i in s:
    c+=1
    print(i,end='')
    if c%3==0:
        print()

首先判断字符串有没有长度 (如果固定为12个的话就没有必要) 其次循环 下标+1能整除3 后面加上一个\n就好了

你是要这样婶的效果么?
[['1' '2' '3' 'a']
['b' 'c' 'せ' 'び']
['¥' '你' '我' '他']]

import numpy as np
s = '''1 2 3 a b c せ び ¥ 你 我 他'''
b = s.split(' ')
print(np.mat(b).reshape(3,4))