这么做到知道运算了几次 ,求解

img

用一个变量统计次数,输入一个统计一次


count = 0

while xx:
    ...
    count+=1
    ...
print(count)