2022年 11月 5日 Python整型数与字符串相互转换 未分类 admin Python中字符串转换为数值: str_num = ’99’ num = int(str_num) 整型数转换为字符串: num = 99 str_num = str(num)