while_statement.py
来自「python编程很好的入门材料,包括讲义和源码.」· Python 代码 · 共 10 行
PY
10 行
numRocketsToFire = 3
rocketCount = 0
while rocketCount < numRocketsToFire:
# Increase the rocket counter by one
rocketCount = rocketCount + 1
print "Firing rocket #" + str( rocketCount )
raw_input( "\nPress Enter to exit..." )
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?