摘要: 1. 条件判断语句 Python中条件选择语句的关键字为:if 、elif 、else这三个。其基本形式如下: 1 2 3 4 5 6 7 8 9 age_of_cc = 27 age = int(input("guessage:")) if age == age_of_cc: print("Yes 阅读全文
posted @ 2016-07-24 21:28 Crazy丶迷恋 阅读(7877) 评论(0) 推荐(0) 编辑
摘要: 1. 输出 Hello wrold 1.1 终端运行 打开cmd,输入python进入到python交互式环境:(看到>>>是在Python交互式环境下:) 在python交互环境下输入以下代码:print("Hello,world!") 1.2 文件运行 新建txt文本文档,改后缀名为.py。用n 阅读全文
posted @ 2016-07-24 21:18 Crazy丶迷恋 阅读(229) 评论(0) 推荐(0) 编辑
摘要: github地址:https://github.com/triaquae/py3_training/tree/master/atm 1. Python定位 Python的设计哲学是“优雅”、“明确”、“简单”。Python开发者的哲学是“用一种方法,最好是只有一种方法来做一件事”。在设计Python 阅读全文
posted @ 2016-07-24 20:55 Crazy丶迷恋 阅读(340) 评论(0) 推荐(0) 编辑