Skip to content
This repository was archived by the owner on Aug 11, 2023. It is now read-only.

Commit 29da7ec

Browse files
committed
Update
1 parent 7476b4c commit 29da7ec

File tree

4 files changed

+28
-17
lines changed

4 files changed

+28
-17
lines changed

README.md

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -120,14 +120,16 @@
120120
- [Enum](/lessons/python/concepts/enum/color-enum.py)
121121
1. [Eval, Exec](/lessons/python/concepts/advanced/eval-exec.py)
122122
1. [`*argv`, `**kwargs`](/lessons/python/concepts/advanced/argv-kwargs.py)
123+
1. [Sys](/modules/sys/README.md)
124+
1. [OS](/modules/os/README.md)
125+
1. [Assertion](/lessons/python/concepts/advanced/simple-assertion.py)
126+
1. [Generator](/lessons/python/concepts/advanced/simple-generator.py)
123127
----
124128
1. [Test](concepts/test/README.md)
125-
1. [Generator](/lessons/python/concepts/advanced/simple-generator.py)
126-
1. [Assertion](/lessons/python/concepts/advanced/simple-assertion.py)
127129
1. [PIP](/lessons/python/installation/README-PIP.md)
128130
1. [Decorator](/lessons/python/concepts/advanced/simple-decorator.py)
129-
1. [Sys](/modules/sys/README.md)
130-
1. [OS](/modules/os/README.md)
131+
1. [Reflection](/lessons/python/concepts/advanced/simple-reflection.py)
132+
1. [Regular Expression](/concepts/regex/README.md)
131133

132134

133135
### Optional
@@ -143,7 +145,6 @@
143145
- [Custom Iterator](/lessons/python/concepts/advanced/custom-iterator.py)
144146
13. Closure
145147
14. [Descriptor](/lessons/python/concepts/advanced/simple-descriptor.py)
146-
15. [Reflection](/lessons/python/concepts/advanced/simple-reflection.py)
147148
16. [Context Manager](/lessons/python/concepts/keywords/keywords-with.py)
148149
17. [Regular Expression](/concepts/regex/README.md)
149150
18. Socket [`client`](/lessons/python/examples/sample/socket/simple-socket-client.py), [`server`](/lessons/python/examples/sample/socket/simple-socket-server.py)
@@ -153,18 +154,6 @@
153154
20. Serialization, Deserialization
154155

155156

156-
---
157-
### New Cource (Temp)
158-
- [NumPy](/lessons/python/modules/numpy/README.md)
159-
- [Test](concepts/test/README.md)
160-
- Class
161-
- Reflection
162-
- [Regular Expression](/concepts/regex/README.md)
163-
- [Sys](/modules/sys/README.md)
164-
- [OS](/modules/os/README.md)
165-
---
166-
167-
168157
### Advanced
169158
1. Dependency Injection
170159
2. Inversion of Control
@@ -174,6 +163,8 @@
174163
6. Semaphore, Lock, Mutex
175164

176165
## Modules, Packages, Libs, ...
166+
- [**Sys**](/modules/sys/README.md)
167+
- [**OS**](/modules/os/README.md)
177168
- [**Tkinter**](/lessons/python/modules/tkinter/README.md)
178169
- [**Turtle**](/lessons/python/modules/turtle/README.md)
179170
- [**NumPy**](/lessons/python/modules/numpy/README.md)
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Python
2+
## Working with CSV
3+
4+
- [Python code](loader.py)
5+
- [CSV](source.csv)
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import sys
2+
import csv
3+
4+
dictionary = {}
5+
6+
with open(sys.path[0]+'/source.csv', 'r') as f:
7+
reader = csv.reader(f, delimiter=' ')
8+
for row in reader:
9+
word, meaning = row[0].split(",")
10+
dictionary[word] = meaning
11+
12+
print(dictionary)
13+
print(dictionary["hi"])
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
hi,سلام
2+
bye,خداحافظ

0 commit comments

Comments
 (0)