x = int(input())
count = 0
while x % 2 == 0:
x /= 2
count += 1
break
while x % 2 != 0:
x = (3 * x + 1) / 2
count += 1
break
while x==1:
print(count)
求助各位大神,为什么这样写,无法输出任何值
...全文
722打赏收藏
python求助2
x = int(input()) count = 0 while x % 2 == 0: x /= 2 count += 1 break while x % 2 != 0: x = (3 * x + 1) / 2 count += 1 break while x==1: print(count) 求助各位大神,为什么这样写,无法输出任何值