摘要: 《Python for Beginners》为LearnStreet上的Python入门课程。本节主要学习内容分为两部分:1. Scoping and Mutability(变量作用域与可变性)2. Classes and Objects(类和对象)Lesson 8 Scoping and Mutability1. Global and Local Variables全局变量和局部变量1 >>> name = "Gladys"2 >>> other_name = "Mario the plumber"3 >> 阅读全文
posted @ 2013-03-18 18:47 极客火腿 阅读(422) 评论(0) 推荐(0) 编辑
摘要: 《Python for Beginners》为LearnStreet上的Python入门课程。本节主要学习内容为Dictionaries(字典)。Lesson 7 Dictionaries1. Indexing Dictionaries查找字典练习1 def run():2 family = {"dad": 60, "mom" : 58, "brother": 20, "sister" : 15, "me" : 10}3 return family["brother"]4 5 阅读全文
posted @ 2013-03-18 18:28 极客火腿 阅读(452) 评论(0) 推荐(0) 编辑
摘要: 原文:http://www.math.ecnu.edu.cn/~jypan/Teaching/cpp/cpp_operator_cn.png 阅读全文
posted @ 2013-03-18 12:23 极客火腿 阅读(233) 评论(0) 推荐(0) 编辑