→ hongyan: 固定這樣格式的話 find("score") find('},')後 str[:]切 12/01 23:31
→ hongyan: 切片 12/01 23:31
→ hongyan: slice1 = s.find(":", s.find('score')) + 2 12/01 23:45
→ hongyan: slice2 = s.find("}", s.find('score')) - 1 12/01 23:45
→ hongyan: result = s[slice1:slice2] 12/01 23:46
→ buddy66: 哇靠!感謝兩位大神 12/02 00:52
→ froce: 另外這一看就是變形的JSON,整個去做json.loads比較好處理 12/03 19:39