如下Pthon程序段,可实现输入二进制数,转化成十进制结果。则划线处①代码可填?( )
b=input("请输入二进制数:") b=_____①_____ d=0 for i in range(len(b)): d+=int(b[i])*2**i print("十进制结果是:",d)
b[:﹣1]
b[﹣1::1]
b[::﹣1]
b[len(b)﹣1:0:﹣1]