Lesson 033 —— sys 模块 关于 sys 模块的一些方法介绍。 1. : 命令行参数 ,第一个元素是程序本身路径 2. : 退出程序,正常退出时 3. : 获取Python解释程序的版本信息 4. : 最大的 值 5. : 返回模块的搜索路径,初始化时使用PYTHONPATH环境变量的 ...
分类:
其他好文 时间:
2018-12-07 18:28:34
阅读次数:
192
Lesson 031 —— random 模块 关于 random 模块的一些方法介绍。 1. : 返回一个 (0, 1) 的浮点型随机数 2. : 返回一个 [a, b] 的整型随机数 3. : 返回一个 [a, b) 的整型随机数 4. : 随机选择其中的一个值,iter 是可迭代对象,可以是列 ...
分类:
其他好文 时间:
2018-12-07 16:41:29
阅读次数:
143
In this lesson you will learn to talk about past occurences. 过去进行时 课上内容(Lesson Key) C: Hi, Loki! L: Hi, Corrine.Good evening! L: Long time no see. C: ...
分类:
移动开发 时间:
2018-11-27 01:35:00
阅读次数:
271
2776. String Task Petya started to attend programming lessons. On the first lesson his task was to write a simple program. The program was supposed to ...
分类:
其他好文 时间:
2018-11-17 16:15:29
阅读次数:
224
In this lesson you will learn to describe what you have. STARTER Do you have a ...? # 你有...吗? car brother/sister job hobby favorite song Tell your tut ...
分类:
其他好文 时间:
2018-11-13 00:11:19
阅读次数:
174
LESSON 29: Using GPIO pins as Inputs and Reading them in Python here we dont have any pull-up resistor. If you are facing some noise, then return to t ...
分类:
Web程序 时间:
2018-11-12 14:56:07
阅读次数:
209
打开一个excel文件,显示它的内容,将它存到一个新文件中。 当处理excel文件时,第一个活动总会是Excel application Scope。这是一个容器,其他的Excel活动都在它里面运行。点击浏览按钮,选取Excel文件。 注意workbook Path是可以用变量替换来做到动态化的。 ...
分类:
其他好文 时间:
2018-11-08 16:26:58
阅读次数:
108
Lesson 024 —— python 文件操作 open() 方法 Python open() 方法用于打开一个文件,并返回文件对象,在对文件进行处理过程都需要使用到这个函数,如果该文件无法被打开,会抛出 OSError。 注意: 使用 open() 方法一定要保证关闭文件对象,即调用 clos ...
分类:
编程语言 时间:
2018-11-04 23:04:04
阅读次数:
198
Lesson 023 —— python 迭代器与生成器 迭代器 迭代是Python最强大的功能之一,是访问集合元素的一种方式。 迭代器是一个可以记住遍历的位置的对象。 迭代器对象从集合的第一个元素开始访问,直到所有的元素被访问完结束。迭代器只能往前不会后退。 迭代器有两个基本的方法: iter() ...
分类:
编程语言 时间:
2018-11-04 22:58:19
阅读次数:
194
The static code analysis and linting tool ESLint is the de-facto standard for linting JavaScript projects. In this lesson we’ll see how to install, ru ...
分类:
移动开发 时间:
2018-11-04 11:19:57
阅读次数:
155