![]() |
1
4
看起来你应该能够做到这一点而不分裂成一个数组。找到最后一个
|
![]() |
2
3
你可以试试这个:
产量:
|
![]() |
3
2
试试这一行:
产量:
|
![]() |
4
0
你可以用rsplit。不管最后一次拆分之前有多少个点,这都会起作用
|
![]() |
5
0
下面是对这种风格的一个很好的解释: How to find and replace nth occurence of word in a sentence using python regular expression? |