标签: python int
nextt[0:1] = "*2" rds = int(nextt[0:1].replace("*",""))
有问题,它说:ValueError: invalid literal for int() with base 10: ''
ValueError: invalid literal for int() with base 10: ''
我只需要从字符串中删除“*”并将其转换为int。