File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -1006,11 +1006,7 @@ from os import path, listdir
1006
1006
[' 1.gif' , ' card.gif' ]
1007
1007
```
1008
1008
1009
-
1010
- Pathlib
1011
- -------
1012
- ** This module offers classes representing filesystem paths with semantics appropriate for different operating systems.**
1013
-
1009
+ ### Pathlib
1014
1010
``` python
1015
1011
from pathlib import Path
1016
1012
cwd = Path()
@@ -1042,7 +1038,6 @@ cwd = Path()
1042
1038
1043
1039
Command Line Arguments
1044
1040
----------------------
1045
- ### Basic
1046
1041
``` python
1047
1042
import sys
1048
1043
script_name = sys.argv[0 ]
@@ -1072,7 +1067,7 @@ import os
1072
1067
< str > = os.popen(< command> ).read()
1073
1068
```
1074
1069
1075
- #### Or:
1070
+ ### Subprocess
1076
1071
``` python
1077
1072
>> > import subprocess
1078
1073
>> > a = subprocess.run([' ls' , ' -a' ], stdout = subprocess.PIPE )
You can’t perform that action at this time.
0 commit comments