diff --git a/.gitignore b/youngjin.han/.gitignore similarity index 100% rename from .gitignore rename to youngjin.han/.gitignore diff --git a/youngjin.han/learning-node02-2020.org b/youngjin.han/learning-node02-2020.org index 2e3e91b..7139687 100644 --- a/youngjin.han/learning-node02-2020.org +++ b/youngjin.han/learning-node02-2020.org @@ -1,5 +1,6 @@ * 2020-05-22 -**** TODO Lecture content +**** DONE Lecture content + CLOSED: [2020-05-23 토 00:21] - Same structure as "Python #2" - Exercises 15-22 **** Lecture material diff --git a/youngjin.han/python-the-hard-way/ex22.py b/youngjin.han/python-the-hard-way/ex22.py deleted file mode 100644 index 3a9d696..0000000 --- a/youngjin.han/python-the-hard-way/ex22.py +++ /dev/null @@ -1,22 +0,0 @@ -import sys -script, input_encoding, error = sys.argv - -def main(language_file, encoding, errors): -line = language_file.readline() - -if line: -print_line(line, encoding, errors) -return main(language_file, encoding, errors) - - -def print_line(line, encoding, errors): -next_lang = line.strip() -raw_bytes = next_lang.encode(encoding, errors=errors) -cooked_string = raw_bytes.decode(encoding, errors=errors) - -print(raw_bytes, "<===>", cooked_string) - - -languages = open("languages.txt", encoding="utf-8") - -main(languages, input_encoding, error) diff --git a/youngjin.han/python.org b/youngjin.han/python.org index 65342a9..020c3c6 100644 --- a/youngjin.han/python.org +++ b/youngjin.han/python.org @@ -24,9 +24,9 @@ - ex20.py - file.seek is to move to new file posotion - ex21.py - - + - none - ex22.py - - + - none * 2020-05-20 ** note - ex8.py