我在用空格解析 String2 时遇到问题。想法?
String1 = "THIS IS STRING1 18-23-80-18"
String2 = "THIS IS STRING2 7-A-4, 4-93-P"
Split1 = String1.rsplit(" ",2)
Output1 = "18-23-80-18" #This Works fine
Split2 = String2.????? # Not sure what to do here
Output2 = "7-A-4, 4-93-P" #How do I Ignore the first space from the right?
澄清:
* 代表我要忽略的空间,% 代表我要查找的空间。
"%7-A-4,*4-93-P"
谢谢。