单选题

下列哪个Python表达式能正确将十六进制数"2A"转换为十进制?( )

A

int('2A', 10)

B

int('2A', 16)

C

bin(0x2A)

D

hex(42)

赣ICP备20007335号-2