Learning Circle : python #3 - ex15 ~ ex21
This commit is contained in:
parent
b68eb529a1
commit
1db776ff5b
19 changed files with 318 additions and 1 deletions
|
|
@ -1,3 +1,32 @@
|
|||
* 2020-05-22
|
||||
** note
|
||||
- ex15.py
|
||||
- The argument method is better than using stdin. becouse bash-completion could be used.
|
||||
- python3.8 shell
|
||||
- >>> filename=input()
|
||||
- ex15_sample.txt
|
||||
- >>> txt = open(filename)
|
||||
- >>> txt_script = txt.read()
|
||||
- >>> print(txt_script)
|
||||
- This is stuff I typed into a file.
|
||||
- It is really cool stuff.
|
||||
- Lots and lots of fun to have in here
|
||||
- ex16.py
|
||||
- 'w' is to open a file on write mode.
|
||||
- If a file is openned with 'w', target.truncate() should not be need. the 'w' mode always overwrite a file.
|
||||
- ex17.py
|
||||
- cat is concatenate files to stdout
|
||||
- If file.close() is not called, the file which is openned by python chould not be modified on orther programs.
|
||||
- ex18.py
|
||||
- none
|
||||
- ex19.py
|
||||
- none
|
||||
- ex20.py
|
||||
- file.seek is to move to new file posotion
|
||||
- ex21.py
|
||||
-
|
||||
- ex22.py
|
||||
-
|
||||
* 2020-05-20
|
||||
** note
|
||||
- ex8.py
|
||||
|
|
@ -15,7 +44,6 @@
|
|||
- none
|
||||
- ex14.py
|
||||
- none
|
||||
|
||||
* 2020-05-18
|
||||
** note
|
||||
- ex1.py
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue