'tuple'和'int'实例之间不支持'<'

时间:2019-07-29 12:51:48

标签: python while-loop

Python baby被困在代码中。我知道它是幼稚的东西,但您知道错误是错误,我没有选择而是要放它。

count=0,
    while(count<5):
        count=count+1
        count

1 个答案:

答案 0 :(得分:-2)

首先,在计数0旁边不需要逗号

第二,如果您需要打印计数,请输入print(count)而不是count