小编Sha*_*han的帖子

如何用python将字符串拆分为2?

我有这些字符串.

"LAKDOER 567-85 06D-1F"
"QRT1 35-43 459-70 D"
"50201 WSCFVGH 133 9H "
"STREE VDERYG 8C LOP"
"GG-STAR THIEOR- WL-515-67-26548H-9"
Run Code Online (Sandbox Code Playgroud)

我想拆分所有字符串,需要像这样的输出.

["LAKDOER", "567-85 06D-1F"]
["QRT1",  "35-43 459-70 D"]
["50201 WSCFVGH", "133 9H "]
["STREE VDERYG", "8C LOP"]
["GG-STAR THIEOR-", "WL-515-67-26548H-9"]
Run Code Online (Sandbox Code Playgroud)

python split python-2.7 python-3.x

1
推荐指数
1
解决办法
63
查看次数

标签 统计

python ×1

python-2.7 ×1

python-3.x ×1

split ×1