单选题

 

Python中,以下哪个选项是将浮点数转换为整数的正确方法?( )

A

int(3.14)

B

float(3)

C

str(3.14)

D

bool(3.14)

赣ICP备20007335号-2