我有这个字符串:'123',我想像这样拆分每个数字:“1,2,3”。我试过这段代码,但它不起作用:
str = '123' str.split()
你怎么知道怎么办?
谢谢
python split
python ×1
split ×1