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

Commitf1c4019

Browse files
committed
fixed long term spelling mistakes
1 parentab12c22 commitf1c4019

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

‎README.md‎

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

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

16121612
```python
16131613
>>> s= {1,2,3}
@@ -1740,7 +1740,7 @@ KeyError: 3
17401740

17411741
##itertools Module
17421742

1743-
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)).
1743+
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)).
17441744

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

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

31533153
### Review of Regex Symbols
31543154

3155-
| Symbol| Matches|
3156-
|------------------------|------------------------------------------------------------|
3157-
|`?`| zeroor one of the preceding group.|
3158-
|`*`| zeroor more of the preceding group.|
3159-
|`+`| oneor more of the preceding group.|
3160-
|`{n}`| exactly n of the preceding group.|
3161-
|`{n,}`| nor more of the preceding group.|
3162-
|`{,m}`|0 to m of the preceding group.|
3163-
|`{n,m}`| at least nand at most m of the preceding p.|
3164-
|`{n,m}?`or`*?`or`+?`| performs a nongreedy match of the preceding p.|
3165-
|`^spam`| means the string must beginwith spam.|
3166-
|`spam$`| means the string must endwith spam.|
3167-
|`.`|any character,except newline characters.|
3168-
|`\d`, `\w`, and `\s` | a digit, word, or space character, respectively.|
3169-
| `\D`, `\W`, and `\S` | anything except a digit, word, or space acter, respectively. |
3170-
|`[abc]`|any character between the brackets (suchas a, b, ).|
3171-
|`[^abc]`|any character that isn’t between the brackets.|
3155+
| Symbol| Matches|
3156+
|------------------------|------------------------------------------------------|
3157+
|`?`| zeroor one of the preceding group.|
3158+
|`*`| zeroor more of the preceding group.|
3159+
|`+`| oneor more of the preceding group.|
3160+
|`{n}`| exactly n of the preceding group.|
3161+
|`{n,}`| nor more of the preceding group.|
3162+
|`{,m}`|0 to m of the preceding group.|
3163+
|`{n,m}`| at least nand at most m of the preceding p.|
3164+
|`{n,m}?`or`*?`or`+?`| performs a nongreedy match of the preceding p.|
3165+
|`^spam`| means the string must beginwith spam.|
3166+
|`spam$`| means the string must endwith spam.|
3167+
|`.`|any character,except newline characters.|
3168+
|`\d`, `\w`, and `\s` | a digit, word, or space character, respectively. |
3169+
| `\D`, `\W`, and `\S` | anything except a digit, word, or space, respectively. |
3170+
|`[abc]`|any character between the brackets (suchas a, b, ).|
3171+
|`[^abc]`|any character that isn’t between the brackets.|
31723172

31733173
[_Return to the Top_](#python-cheatsheet)
31743174

@@ -3958,9 +3958,9 @@ with open("filename.json", "w") as f:
39583958
### YAML
39593959

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

3963-
There are two mainlibrairies allowing to access toYAML files:
3963+
There are two mainlibraries allowing to access toYAML files:
39643964

39653965
- [PyYaml](https://pypi.python.org/pypi/PyYAML)
39663966
- [Ruamel.yaml](https://pypi.python.org/pypi/ruamel.yaml)
@@ -3984,7 +3984,7 @@ with open("filename.yaml") as f:
39843984

39853985
### Anyconfig
39863986

3987-
[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.
3987+
[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.
39883988

39893989
Install itwith:
39903990

@@ -4020,7 +4020,7 @@ Traceback (most recent call last):
40204020
Exception: Thisis the error message.
40214021
```
40224022

4023-
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.
4023+
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.
40244024

40254025
```python
40264026
def box_print(symbol, width, height):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp