您可以使用正则表达式:
import rejust = 'Standard Price:20000'price = re.findall("d+", just)[0]
要么
price = just.split(":")[1]
上一篇 在应用程序上下文之外工作-Flask
下一篇 进度条在操作期间未更新
版权所有 (c)2021-2022 MSHXW.COM
ICP备案号:晋ICP备2021003244-6号