Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitaff7f69

Browse files
committed
long term spelling mistakes
1 parentf1c4019 commitaff7f69

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

‎blog_files/pysheet.md‎

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1286,7 +1286,7 @@ From the Python 3 [documentation](https://docs.python.org/3/tutorial/datastructu
12861286
12871287
###Initializing a set
12881288

1289-
There are two ways to create sets: using curly braces`{}` and thebult-in function`set()`
1289+
There are two ways to create sets: using curly braces`{}` and thebuilt-in function`set()`
12901290

12911291
```python
12921292
>>> s= {1,2,3}
@@ -1417,7 +1417,7 @@ KeyError: 3
14171417

14181418
##itertools Module
14191419

1420-
The_itertools_ module is acolection of toolsintented to be fast and use memory efficiently when handling iterators (like[lists](#lists) or[dictionaries](#dictionaries-and-structuring-data)).
1420+
The_itertools_ module is acollection of toolsintended to be fast and use memory efficiently when handling iterators (like[lists](#lists) or[dictionaries](#dictionaries-and-structuring-data)).
14211421

14221422
From the official[Python 3.x documentation](https://docs.python.org/3/library/itertools.html):
14231423

@@ -2727,23 +2727,23 @@ The dot-star will match everything except a newline. By passing re.DOTALL as the
27272727

27282728
### Review of Regex Symbols
27292729

2730-
| Symbol| Matches|
2731-
|------------------------|------------------------------------------------------------|
2732-
|`?`| zeroor one of the preceding group.|
2733-
|`*`| zeroor more of the preceding group.|
2734-
|`+`| oneor more of the preceding group.|
2735-
|`{n}`| exactly n of the preceding group.|
2736-
|`{n,}`| nor more of the preceding group.|
2737-
|`{,m}`|0 to m of the preceding group.|
2738-
|`{n,m}`| at least nand at most m of the preceding p.|
2739-
|`{n,m}?`or`*?`or`+?`| performs a nongreedy match of the preceding p.|
2740-
|`^spam`| means the string must beginwith spam.|
2741-
|`spam$`| means the string must endwith spam.|
2742-
|`.`|any character,except newline characters.|
2743-
|`\d`, `\w`, and `\s` | a digit, word, or space character, respectively.|
2744-
| `\D`, `\W`, and `\S` | anything except a digit, word, or space acter, respectively. |
2745-
|`[abc]`|any character between the brackets (suchas a, b, ).|
2746-
|`[^abc]`|any character that isn’t between the brackets.|
2730+
| Symbol| Matches|
2731+
|------------------------|------------------------------------------------------|
2732+
|`?`| zeroor one of the preceding group.|
2733+
|`*`| zeroor more of the preceding group.|
2734+
|`+`| oneor more of the preceding group.|
2735+
|`{n}`| exactly n of the preceding group.|
2736+
|`{n,}`| nor more of the preceding group.|
2737+
|`{,m}`|0 to m of the preceding group.|
2738+
|`{n,m}`| at least nand at most m of the preceding p.|
2739+
|`{n,m}?`or`*?`or`+?`| performs a nongreedy match of the preceding p.|
2740+
|`^spam`| means the string must beginwith spam.|
2741+
|`spam$`| means the string must endwith spam.|
2742+
|`.`|any character,except newline characters.|
2743+
|`\d`, `\w`, and `\s` | a digit, word, or space character, respectively. |
2744+
| `\D`, `\W`, and `\S` | anything except a digit, word, or space, respectively. |
2745+
|`[abc]`|any character between the brackets (suchas a, b, ).|
2746+
|`[^abc]`|any character that isn’t between the brackets.|
27472747

27482748
### Case-Insensitive Matching
27492749

@@ -3481,9 +3481,9 @@ with open("filename.json", "w") as f:
34813481
### YAML
34823482

34833483
Compared toJSON,YAML allowsfor much better human maintainabilityand gives you the option to add comments.
3484-
Itis aconvinient choicefor configuration files where humans will have to edit it.
3484+
Itis aconvenient choicefor configuration files where humans will have to edit it.
34853485

3486-
There are two mainlibrairies allowing to access toYAML files:
3486+
There are two mainlibraries allowing to access toYAML files:
34873487

34883488
- [PyYaml](https://pypi.python.org/pypi/PyYAML)
34893489
- [Ruamel.yaml](https://pypi.python.org/pypi/ruamel.yaml)
@@ -3505,7 +3505,7 @@ with open("filename.yaml") as f:
35053505

35063506
### Anyconfig
35073507

3508-
[Anyconfig](https://pypi.python.org/pypi/anyconfig)is a very handy package allowing to abstractcompletly the underlying configurationfileformat. It allows to load a Python dictionaryfromJSON,YAML,TOML,and so on.
3508+
[Anyconfig](https://pypi.python.org/pypi/anyconfig)is a very handy package allowing to abstractcompletely the underlying configurationfileformat. It allows to load a Python dictionaryfromJSON,YAML,TOML,and so on.
35093509

35103510
Install itwith:
35113511

@@ -3539,7 +3539,7 @@ Traceback (most recent call last):
35393539
Exception: Thisis the error message.
35403540
```
35413541

3542-
Often it’s the code that calls the function,not the function itself, that knows how to handle anexpection. So you will commonly see araise statement inside a functionand thetryandexcept statementsin the code calling the function.
3542+
Often it’s the code that calls the function,not the function itself, that knows how to handle anexception. So you will commonly see araise statement inside a functionand thetryandexcept statementsin the code calling the function.
35433543

35443544
```python
35453545
def box_print(symbol, width, height):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp