# 测试用例 assert int('1010', 2) == 10 assert int('FF', 16) == 255 assert int('77', 8) == 63 assert int('10', 10) == 10 assert int('10101', 2) == 21 print('PASS')