|
19 | 19 | 4. [Date and Time Modules](#exploring-standard-modules-date-and-time-modules)
|
20 | 20 | 5. [Subprocess Module](#exploring-standard-modules-subprocess-module)
|
21 | 21 | 6. [Argparse Module](#exploring-standard-modules-argparse-module)<!--TODO -->
|
22 |
| - 6. [SQLite Module](#exploring-standard-modules-embedded-relational-database-module) |
| 22 | + 6. [SQLite Module](#exploring-standard-modules-embedded-relational-database-module) |
23 | 23 | 7. [XmlTree Module](#exploring-xmltree-module)
|
24 | 24 | 8. [JSON Module](#exploring-json-module)
|
25 | 25 | 9. [Regular Expressions Module](#exprloting-standard-regular-expression-module)
|
|
42 | 42 |
|
43 | 43 | ## `Getting Started` Standard Input, Output and Error
|
44 | 44 |
|
45 |
| -Standard input, output and error (commonly referred as `stdin`, `stdout` and `stderr`) are what's called pipes. |
| 45 | +Standard input, output and error (commonly referred to as `stdin`, `stdout` and `stderr`) are what's called pipes. |
46 | 46 |
|
47 | 47 | These pipes are normally connected to the terminal window where you are working.
|
48 | 48 |
|
49 |
| -When printing something (using `print()`), it goes to the `stdout` pipe by default; when your program needs to print errors (like a traceback in Python), it goes to the `stderr` pipe; and when your program requires input from a user or other programs, it is goes to the `stdin` pipe. |
| 49 | +When printing something (using `print()`), it goes to the `stdout` pipe by default; when your program needs to print errors (like a traceback in Python), it goes to the `stderr` pipe; and when your program requires input from a user or other programs, it goes to the `stdin` pipe. |
50 | 50 |
|
51 | 51 | ```bash
|
52 | 52 | $ cat /etc/passwd | grep /bin/bash
|
@@ -208,7 +208,7 @@ totat lines: 14023
|
208 | 208 | By default, `fileinput.input()` will read all lines from files given as an argument to the script; if no arguments given then defaults to standard input.
|
209 | 209 |
|
210 | 210 | ---
|
211 |
| - |
| 211 | + |
212 | 212 | ## `Getting Started` Command-line Arguments
|
213 | 213 |
|
214 | 214 | `sys` module provides `argv` variable containing the list of arguments passed to the script when executed as a command-line application.
|
@@ -519,7 +519,7 @@ sys.exit(0)
|
519 | 519 | ```bash
|
520 | 520 | $ python3 sys-01.py
|
521 | 521 |
|
522 |
| -Python version installed: 3.7.4 (default, Jul 9 2019, 16:48:28) |
| 522 | +Python version installed: 3.7.4 (default, Jul 9 2019, 16:48:28) |
523 | 523 | [GCC 8.3.1 20190223 (Red Hat 8.3.1-2)]
|
524 | 524 |
|
525 | 525 | Python running on platforn: linux
|
@@ -902,7 +902,7 @@ A few concepts we can learn from the four commands:
|
902 | 902 | - The "-l" is knowns as an "optional argument"
|
903 | 903 | - If you want to display the help text of the ls command, you would type "ls --help"
|
904 | 904 |
|
905 |
| -To start using the argparse module, we first have to import it. |
| 905 | +To start using the argparse module, we first have to import it. |
906 | 906 |
|
907 | 907 | ```py
|
908 | 908 | >>> import argparse
|
|
0 commit comments