我在 python 中这样做,我有几个这样的变量。
team = "St. John's"
db_team = "St. John's"
db_team = "St John's"
#I am not sure which variable db_team will equal
re.search(team, db_team)
但显然这不起作用,因为 team 变量中的 period ,但同时我不能从 team 变量中取出所有时期。不确定如何获取团队变量并匹配任一 db_team 变量?