Skip to content

更新 #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 18, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added res/file-open-mode.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/json-in-console.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/tel-start-number.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion 第001课:初识Python.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ python --version

macOS自带了Python 2,但是我们需要安装和使用的是Python 3。可以通过Python官方网站提供的[下载链接](<https://www.python.org/downloads/release/python-376/>)找到适合macOS的“macOS installer”来安装Python 3,安装过程基本不需要做任何勾选,直接点击“下一步”即可。安装完成后,可以在macOS的“终端”工具中输入`python3`命令来调用Python 3解释器,因为如果直接输入`python`,将会调用Python 2的解释器。

> **说明**:如果对安装Python环境有任何疑问,可以参考我们在**百度云盘**上提供的**视频讲解**。链接:<https://pan.baidu.com/s/10y7sGM016YBM7gDdauGqLw>,密码:4s6r
> **说明**:如果对安装Python环境有任何疑问,可以参考我们在**百度云盘**上提供的**视频讲解**。视频链接:https://pan.baidu.com/s/1Tu8wy9IExP_Co6CurVr2Pg,密码:rbao

### 总结

Expand Down
2 changes: 1 addition & 1 deletion 第002课:第一个Python程序.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ print("你好,世界!")

到这里,我们已经把第一个Python程序运行起来了,是不是很有成就感?只要你坚持学习下去,再过一段时间,我就可以带着大家用Python程序制作小游戏、写美女图片爬虫、开发微信机器人。**写程序本身就是一件很酷的事情**,在未来编程就像英语一样,**对很多人来说或都是必须要掌握的技能**。

> **温馨提示**:学习中如果遇到困难,可以看看我们为大家录制的入门视频,视频链接地址:<https://pan.baidu.com/s/10y7sGM016YBM7gDdauGqLw>,密码:4s6r,也可以加**QQ交流群**询问。
> **温馨提示**:学习中如果遇到困难,可以看看我们为大家录制的入门视频,视频链接:https://pan.baidu.com/s/1Tu8wy9IExP_Co6CurVr2Pg,密码:rbao,也可以加**QQ交流群**询问。
>
> 付费群:**789050736**,群一直保留,供大家学习交流讨论问题。
>
Expand Down
2 changes: 1 addition & 1 deletion 第003课:Python语言元素之变量.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ print(ord('a')) # 97

在Python程序中,我们可以**使用变量来保存数据**,**变量有不同的类型**,**变量可以做运算**(下一课会有详细的讲解),**也可以通过内置函数来转换变量类型**。

>**温馨提示**:学习中如果遇到困难,可以看看我们为大家录制的入门视频,视频的链接地址:<https://pan.baidu.com/s/10y7sGM016YBM7gDdauGqLw>,密码:4s6r,也可以加**QQ交流群**询问。
>**温馨提示**:学习中如果遇到困难,可以看看我们为大家录制的入门视频,视频链接:https://pan.baidu.com/s/1Tu8wy9IExP_Co6CurVr2Pg,密码:rbao。也可以加**QQ交流群**询问。
>
>付费群:**789050736**,群一直保留,供大家学习交流讨论问题。
>
Expand Down
2 changes: 1 addition & 1 deletion 第004课:Python语言元素之运算符.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ print(is_leap)

通过上面的例子相信大家感受到了,学会使用运算符以及由运算符构成的表达式,就可以帮助我们解决很多实际的问题,**运算符和表达式对于任何一门编程语言都是非常重要的**。

> **温馨提示**:学习中如果遇到困难,可以看看我们为大家录制的入门视频,视频的链接地址:<https://pan.baidu.com/s/10y7sGM016YBM7gDdauGqLw>,密码:4s6r,也可以加**QQ交流群**询问。
> **温馨提示**:学习中如果遇到困难,可以看看我们为大家录制的入门视频,视频链接:https://pan.baidu.com/s/1Tu8wy9IExP_Co6CurVr2Pg,密码:rbao,也可以加**QQ交流群**询问。
>
> 付费群:**789050736**,群一直保留,供大家学习交流讨论问题。
>
Expand Down
2 changes: 1 addition & 1 deletion 第005课:分支结构.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ else:

学会了Python中的分支结构和循环结构,我们就可以用Python程序来解决很多实际的问题了。这一节课相信已经帮助大家记住了`if`、`elif`、`else`这几个关键字以及如何使用它们来构造分支结构,下一节课我们为大家介绍循环结构,学完这两次课你一定会发现,你能写出很多很多非常有意思的代码。坚持努力,继续加油!

> **温馨提示**:学习中如果遇到困难,可以看看我们为大家录制的入门视频,视频的链接地址:<https://pan.baidu.com/s/10y7sGM016YBM7gDdauGqLw>,密码:4s6r,也可以加**QQ交流群**询问。
> **温馨提示**:学习中如果遇到困难,可以看看我们为大家录制的入门视频,视频链接:https://pan.baidu.com/s/1Tu8wy9IExP_Co6CurVr2Pg,密码:rbao,也可以加**QQ交流群**询问。
>
> 付费群:**789050736**,群一直保留,供大家学习交流讨论问题。
>
Expand Down
2 changes: 1 addition & 1 deletion 第006课:循环结构.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ for factor in range(x, 0, -1):

学会了Python中的分支结构和循环结构,我们就可以解决很多实际的问题了。通过这节课的学习,大家应该已经知道了可以用`for`和`while`关键字来构造循环结构。**如果知道循环的次数,我们通常使用**`for`**循环**;如果**循环次数不能确定,可以用**`while`**循环**。在循环中还**可以使用**`break`**来提前结束循环**。

> **温馨提示**:学习中如果遇到困难,可以看看我们为大家录制的入门视频,视频的链接地址:<https://pan.baidu.com/s/10y7sGM016YBM7gDdauGqLw>,密码:4s6r,也可以加**QQ交流群**询问。
> **温馨提示**:学习中如果遇到困难,可以看看我们为大家录制的入门视频,视频链接:https://pan.baidu.com/s/1Tu8wy9IExP_Co6CurVr2Pg,密码:rbao,也可以加**QQ交流群**询问。
>
> 付费群:**789050736**,群一直保留,供大家学习交流讨论问题。
>
Expand Down
2 changes: 1 addition & 1 deletion 第007课:分支和循环结构的应用.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ for num in range(2, 100):

还是那句话:**分支结构和循环结构非常重要**,是构造程序逻辑的基础,**一定要通过大量的练习来达到融会贯通**。刚才讲到的CRAPS赌博游戏那个例子可以作为一个标准,如果你能很顺利的完成这段代码,那么分支和循环结构的知识你就已经掌握了。

> **温馨提示**:学习中如果遇到困难,可以看看我们为大家录制的入门视频,视频的链接地址:<https://pan.baidu.com/s/10y7sGM016YBM7gDdauGqLw>,密码:4s6r,也可以加**QQ交流群**询问。
> **温馨提示**:学习中如果遇到困难,可以看看我们为大家录制的入门视频,视频链接:https://pan.baidu.com/s/1Tu8wy9IExP_Co6CurVr2Pg,密码:rbao,也可以加**QQ交流群**询问。
>
> 付费群:**789050736**,群一直保留,供大家学习交流讨论问题。
>
Expand Down
2 changes: 1 addition & 1 deletion 第008课:函数和模块.md
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ Python标准库中还有一类函数是不需要`import`就能够直接使用的

**函数是功能相对独立且会重复使用的代码的封装**。学会使用定义和使用函数,就能够写出更为优质的代码。当然,Python语言的标准库中已经为我们提供了大量的模块和常用的函数,用好这些模块和函数就能够用更少的代码做更多的事情。

> **温馨提示**:学习中如果遇到困难,可以看看我们为大家录制的入门视频,视频的链接地址:<https://pan.baidu.com/s/10y7sGM016YBM7gDdauGqLw>,密码:4s6r,也可以加**QQ交流群**询问。
> **温馨提示**:学习中如果遇到困难,可以看看我们为大家录制的入门视频,视频链接:https://pan.baidu.com/s/1Tu8wy9IExP_Co6CurVr2Pg,密码:rbao,也可以加**QQ交流群**询问。
>
> 付费群:**789050736**,群一直保留,供大家学习交流讨论问题。
>
Expand Down
2 changes: 1 addition & 1 deletion 第009课:常用数据结构之字符串.md
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ print(s.strip()) # [email protected]

知道如何表示和操作字符串对程序员来说是非常重要的,因为我们需要处理文本信息,Python中操作字符串可以用拼接、切片等运算符,也可以使用字符串类型的方法。

> **温馨提示**:学习中如果遇到困难,可以看看我们为大家录制的入门视频,视频的链接地址:<https://pan.baidu.com/s/10y7sGM016YBM7gDdauGqLw>,密码:4s6r,也可以加**QQ交流群**询问。
> **温馨提示**:学习中如果遇到困难,可以看看我们为大家录制的入门视频,视频链接:https://pan.baidu.com/s/1Tu8wy9IExP_Co6CurVr2Pg,密码:rbao,也可以加**QQ交流群**询问。
>
> 付费群:**789050736**,群一直保留,供大家学习交流讨论问题。
>
Expand Down
2 changes: 1 addition & 1 deletion 第010课:函数和字符串的应用.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ while True:

在写代码尤其是开发商业项目的时候,一定要有意识的**将相对独立且重复出现的功能封装成函数**,这样不管是自己还是团队的其他成员都可以通过调用函数的方式来使用这些功能。字符串是非常重要的数据类型,**字符串的常用运算和方法需要掌握**,因为一般的商业项目中,处理字符串比处理数值的操作要更多。

> **温馨提示**:学习中如果遇到困难,可以看看我们为大家录制的入门视频,视频的链接地址:<https://pan.baidu.com/s/10y7sGM016YBM7gDdauGqLw>,密码:4s6r,也可以加**QQ交流群**询问。
> **温馨提示**:学习中如果遇到困难,可以看看我们为大家录制的入门视频,视频链接:https://pan.baidu.com/s/1Tu8wy9IExP_Co6CurVr2Pg,密码:rbao,也可以加**QQ交流群**询问。
>
> 付费群:**789050736**,群一直保留,供大家学习交流讨论问题。
>
Expand Down
6 changes: 3 additions & 3 deletions 第014课:常用数据结构之集合.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,14 +159,14 @@ set1.clear()
print(set1) # set()
```

如果要判断两个集合有没有相同的元素可以使用`isdisjoint`方法,代码如下所示。
如果要判断两个集合有没有相同的元素可以使用`isdisjoint`方法,没有相同元素返回`True`,否则返回`False`,代码如下所示。

```Python
set1 = {'Java', 'Python', 'Go', 'Kotlin'}
set2 = {'Kotlin', 'Swift', 'Java', 'Objective-C', 'Dart'}
set3 = {'HTML', 'CSS', 'JavaScript'}
print(set1.isdisjoint(set2)) # True
print(set1.isdisjoint(set3)) # False
print(set1.isdisjoint(set2)) # False
print(set1.isdisjoint(set3)) # True
```

### 不可变集合
Expand Down
Loading