小编use*_*308的帖子

Python基础知识打印1到100

def gukan(count):
    while count!=100:
      print(count)
      count=count+1;
gukan(0)
Run Code Online (Sandbox Code Playgroud)

我的问题是:当我尝试增加3或9而不是1时,count=count+1我得到一个无限循环 - 为什么会这样?

python

19
推荐指数
3
解决办法
7万
查看次数

标签 统计

python ×1