07 2016 档案

摘要:1. 模块 Python的强大之处在于他有非常丰富和强大的标准库和第三方库,几乎你想实现的任何功能都有相应的Python库支持,以后的课程中会深入讲解常用到的各种库,现在,我们先来象征性的学2个简单的。 sys #!/usr/bin/env python #-*- coding: utf-8 -*- 阅读全文
posted @ 2016-07-31 15:51 Crazy丶迷恋 阅读(262) 评论(0) 推荐(0) 编辑
摘要: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丶迷恋 阅读(7883) 评论(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丶迷恋 阅读(234) 评论(0) 推荐(0) 编辑
摘要:github地址:https://github.com/triaquae/py3_training/tree/master/atm 1. Python定位 Python的设计哲学是“优雅”、“明确”、“简单”。Python开发者的哲学是“用一种方法,最好是只有一种方法来做一件事”。在设计Python 阅读全文
posted @ 2016-07-24 20:55 Crazy丶迷恋 阅读(344) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示