摘要: 《Python for Beginners》为LearnStreet上的Python入门课程。本节主要学习内容为条件语句。Lesson 4 Control Flow and Conditionals1. 第一个Python函数 1 def check_wounds(): 2 #your code here 3 arms = 0 4 if arms == 1: 5 return "tis but a scratch" 6 elif arms == 0: 7 return "flesh wound" 8 else: 9 ... 阅读全文
posted @ 2013-03-06 20:58 极客火腿 阅读(432) 评论(0) 推荐(0) 编辑