Skip to content
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

Part.1.E.7.files中1.3.读写文件第4个Demo程序前的文字说明——与之相对的,我们可以使用 file.readlins() 这个命令——其中英文单词file.readlins拼写少个字母e #687

Merged
merged 1 commit into from
Apr 18, 2019

Conversation

WengYadong
Copy link
Contributor

Part.1.E.7.files中1.3.读写文件第4个Demo程序前的文字说明——与之相对的,我们可以使用 file.readlins() 这个命令——其中英文单词file.readlins拼写少个字母e
@xiaolai

@xiaolai xiaolai merged commit 7094981 into selfteaching:master Apr 18, 2019
xiaolai added a commit that referenced this pull request Apr 18, 2019
xiaolai pushed a commit that referenced this pull request Apr 30, 2019
* update TOC.md; update image url

* update code blocks

* update TOC

* 第一章部分文字的修订

* Update Part.1.E.6.containers.ipynb

优化表述。原表述容易产生理解错误。

通过测试发现,max()与min()函数只能在“具有相同类型值的列表”(都是数字或者都是字符串)中进行比较。

在具有混合类型值的列表上,使用max()与min()函数会报错:TypeError: '>' not supported between instances of 'str' and 'int'。例如,例子中的c_list列表使用max()与min函数就会报错。

实际情况是,max()与min()函数并不能“比较字符和数字”。它们只能在字符之间或者数字之间进行比较。因此,修改表述后,更容易理解上不出现偏差。

* Part.1.E.6.containers中1.5.字典(Dictionary)关于 key:value “自动去重”的补充说明——或者说,最后一个 key:value “之前那个 key 的 value 被更新了”。——这句话少个括号的后半部。

* Update Part.1.E.6.containers.ipynb

copy()为无效的函数。通过测试与查看官方文档中的内建函数,确定copy()为非内置函数且未被定义。

在帮助文档中找到复制set的方法,可以使用set.copy() method去实现。不知道是否指的是 set.copy() method ?

* From wangpeiran 7 #682

* warnMax()Min()DifferFromLen()

提醒新手注意不同的 method 应用的是不同的 list,我是直接看上面紧接着的 list ,导致一直困惑:为什么不是数字最小?

* Update Part.1.E.6.containers.ipynb

* Update Part.1.E.6.containers.md

* Part.1.E.6.containers中1.5.字典(Dictionary)关于 key:value “自动去重”的补充说明——(或者说,最后一个 key:value “之前那个 key 的 value 被更新了”。——这句话缺括号的后半部“右括号”。

* Part.1.E.7.files中1.3.读写文件第4个Demo程序前的文字说明——与之相对的,我们可以使用 file.readlins() 这个命令——其中英文单词file.readlins拼写少个字母e

* 英文单词file.readlins拼写少个字母e #687

* Update Part.1.E.6.containers.ipynb

赋值符号‘=’,前后添加空格分隔。

* From wangpeiran 8 #685

* add "encoding='UTF-8'" on line 297

add "encoding='UTF-8'" on line 297
---------------------------------------------------------------------------
UnicodeDecodeError                        Traceback (most recent call last)
<ipython-input-21-7a1b58a9bc74> in <module>
      7     if '.ipynb' in f:
      8         with open(f, 'r') as file:
----> 9             str = file.read()
     10             pttn = r'markdown'
     11             r = re.findall(pttn, str)

UnicodeDecodeError: 'gbk' codec can't decode byte 0xaa in position 123: illegal multibyte sequence

* Update Part.3.D.indispensable-illusion.ipynb

* By yaoyouzhong #684

* 从目录引入模块需目录下包含 “__init__.py” 文件

补充从目录引入模块的说明:且该目录下同时要存在 [`__init__.py`](https://docs.python.org/3/reference/import.html#regular-packages) 这个文件(通常为空文件,用于标识本目录形成一个包含多个模块的 **包**([packages](https://docs.python.org/3/reference/import.html#regular-packages)),它们处在一个独立的 **命名空间**([namespace](https://docs.python.org/3/glossary.html#term-namespace-package)))

* format punctuations

* 从目录引入模块需目录下包含 “__init__.py” 文件 #692

* Update Part.1.E.7.files.ipynb

优化表述

* From wangperian 9 #694

* add space around 0

* Update Part.1.B.why.start.from.learning.coding.ipynb

* 134bfc3

* Update Part.1.E.5.strings.ipynb

* Update Part.1.E.7.files.ipynb

提供的数值不一致

* Update Part.1.E.5.strings.ipynb

* From wangpeiran 10 #696

* Update Part.1.E.5.strings.ipynb

* Update Part.1.E.5.strings.ipynb

* Update Part.1.F.deal-with-forward-references.ipynb

知识讲解 ---》 知识结构

* From wangpeiran 11 #697

* Update Part.1.E.5.strings.ipynb

* Update Part.1.E.5.strings.ipynb

* Update Part.1.G.The-Python-Tutorial-local.ipynb

2019/4/20/14:33 接收到的文件大小为 274.87MB。

按流程制作的三个版本(ipynb、html、epub)的 python tutorial 都没问题。只有最后的完整版的 python Doc 报错未制作成功。(linux系统上的执行结果)

* From wangpeiran 12 #699

* From wangpeiran 13 #701

* Update Part.1.E.5.strings.ipynb

* Update Part.1.E.5.strings.ipynb

* Update Part.2.B.deliberate-practicing.ipynb

跨不去 ---》 跨不过去

* From wangpeiran 14 #702

* Update Part.1.E.5.strings.ipynb

* Update Part.1.E.5.strings.ipynb

* Update Part.2.B.deliberate-practicing.ipynb

markdown 标注失误 —— 标注粗体符号(**)与标注文本间有空格,导致标注无效。

* Update Part.2.B.deliberate-practicing.ipynb

* Update Part.1.E.5.strings.ipynb

* Update Part.1.E.5.strings.ipynb

* Update Part.2.D.4-recursion.ipynb

优化表述

* From wangpeiran 15 #708

* write the sample file to the /tmp path

* markdown files updated: write the sample file to the /tmp path

* add space before ignore

* remove space before ignore

* 根据 GitPress 做一些样式定制

* 根据 GitPress 做一些样式定制

* 根据 GitPress 做一些样式定制

* 根据 GitPress 做一些样式定制

* 根据 GitPress 做一些样式定制

* 根据 GitPress 做一些样式定制

* 根据 GitPress 做一些样式定制

* update block type

* update references

* 使用 Markdown Footnotes 语法写 footnotes

* 处理脚注

* 根据 GitPress 做代码适配

* 根据 GitPress 做一些定制
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants