new_binary = new_binary + str((int(num) + b_sum + extra) % 2) #二进制加法运算. if int(num) + b_sum + extra > 1: #是否进位. extra = 1.
確定! 回上一頁