报错提示: OSError: Can't load tokenizer for 'bert-base-chinese'. If you were trying to load it from 'https://huggingface.co/models', make sure you don't have a local directory with the same name. Otherwi
今天写Python代码的时候遇到的问题,用int转换一个字符串,报错如下: ValueError: invalid literal for int() with base 10: '22.70' 原因是int只能转换纯数字的字符串, 因此我这里的方式可以先使用float(),再使用int()。 int(float(xxxx))