单选题

在Python中,a=2,b="3.5",如果想进行2+3.5的加法运算,我们应该如何编写代码?( )

A

a+b

B

str(a)+b

C

a+ int(b)

D

a+eval(b)

赣ICP备20007335号-2