I have been messing with this small code for over an hour but it keeps adding 512 to my number on the first time adding the numbers

前端 未结 0 1743
攒了一身酷
攒了一身酷 2020-12-14 12:26
number= str(123)
length=len(number)
baseTen=0
num=0
for i in number:
    num=(int(i)*8**length)
    print(baseTen)
    baseTen=baseTen+num #<------this is the iss         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题