the output of int("1.4") are
时间: 2024-05-28 13:10:55 浏览: 62
The output of `int("1.4")` will be a `ValueError` because the string "1.4" cannot be converted to an integer directly since it contains a decimal point and is not a whole number. To convert a string containing a floating-point number to an integer, you would need to first convert it to a float and then round or truncate it to an integer.
阅读全文