- 4
- 0
- 约 11页
- 2016-11-22 发布于河南
- 举报
深入流程控制
More Control Flow Tools 深入流程控制?
Besides the while statement just introduced, Python knows the usual control flow statements known from other languages, with some twists.
除了 while 关键字
if Statements?
Perhaps the most well-known statement type is the if statement. For example:
可能最有名的语句是 :keyword:`if`。例如:
x = int(input(Please enter an integer: ))
if x 0:
... x = 0
... print(Negative changed to zero)
...elif x == 0:
... print(Zero)
...elif x == 1:
... print(Single)
...else:
... print(More)
...
There can be zero or more elif parts, and the else part is optional. The keyword ‘e
您可能关注的文档
最近下载
- 电力电缆隧道日常运维技术规程.docx
- 小学道德与法治新部编版四年级上册全册教案(2026秋版).doc
- Siemens Healthineers Siemens Healthineers 西门子海德灵 医疗影像系统 Atellica NEPH 630 说明书用户手册.pdf VIP
- 小学义务教育劳动课程三学段(5~6年级)PPT教学课件.pptx
- 《会计档案的管理》课件.ppt VIP
- 清洗门窗有办法(课件)-六年级上册劳动鄂教版.ppt VIP
- 家具厂安全生产责任制细则.docx VIP
- 临床检验项目手册汇编.pdf VIP
- 四年级上册《劳动技术》教案(精编完整版).docx VIP
- 生物基1,3-丙二醇(PDO)在PTT纤维合成中的成本优势与市场竞争.docx VIP
原创力文档

文档评论(0)