假设有一个元组test = (1,2),我想计算10**test哪个应该相等(10,100).但是Python给出了错误 unsupported operand type(s) for ** or pow(): 'int' and 'tuple'
test = (1,2)
10**test
(10,100)
unsupported operand type(s) for ** or pow(): 'int' and 'tuple'
我怎么在python中这样做?
python arrays
arrays ×1
python ×1