判断题
偏易
#15764
print(int('8.88')),代码输出的结果为8。( )
print(int('8.88')),代码输出的结果为8。( )
答案与解析
正确答案:错
解析
int() 函数只能转换整数字符串,无法转换小数格式的字符串。