Skip to content

Commit 26d28ad

Browse files
committed
Pathlib
1 parent 8706d14 commit 26d28ad

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

README.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,11 +1006,7 @@ from os import path, listdir
10061006
['1.gif', 'card.gif']
10071007
```
10081008

1009-
1010-
Pathlib
1011-
-------
1012-
**This module offers classes representing filesystem paths with semantics appropriate for different operating systems.**
1013-
1009+
### Pathlib
10141010
```python
10151011
from pathlib import Path
10161012
cwd = Path()
@@ -1042,7 +1038,6 @@ cwd = Path()
10421038

10431039
Command Line Arguments
10441040
----------------------
1045-
### Basic
10461041
```python
10471042
import sys
10481043
script_name = sys.argv[0]
@@ -1072,7 +1067,7 @@ import os
10721067
<str> = os.popen(<command>).read()
10731068
```
10741069

1075-
#### Or:
1070+
### Subprocess
10761071
```python
10771072
>>> import subprocess
10781073
>>> a = subprocess.run(['ls', '-a'], stdout=subprocess.PIPE)

0 commit comments

Comments
 (0)