为什么“ print(int('100',2))”在python中给出4的输出?

你好,我试图解决一些代码,但我陷入其中,我不知道为什么 print(int('100',2))给出4的输出,请向我解释。