对于其他字符串,它工作正常,但无法获取数字。有什么建议么?
text = "<:Valorant:946399790739099688><@&945697242994602054>" start = text.find("<@&") + len("<@&") end = text.find(">") print(text[start:end])
python substring
python ×1
substring ×1