python的学习使用中遇到了这个错误:can only concatenate str (not “int”) to str;
我也是新手,如果你得一个变量是int变量例如:num=int(100/12),num结果为8,要输出num,print输出:print(‘数字为%d‘%num),不是很懂,这是我试下来的
python的学习使用中遇到了这个错误:can only concatenate str (not “int”) to str;
我也是新手,如果你得一个变量是int变量例如:num=int(100/12),num结果为8,要输出num,print输出:print(‘数字为%d‘%num),不是很懂,这是我试下来的