prog4_26.py

value = int(input("整数を表す文字列?"), int(input("何進数ですか?")))
print("値は", value, "です!")

# プログラム4-26(基数を指定して整数を解釈)