Skip to content

Commit 1667ca5

Browse files
committed
fix emoji
1 parent 983b3c2 commit 1667ca5

File tree

29 files changed

+68
-70
lines changed

29 files changed

+68
-70
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ pipx list
408408

409409
## Donation
410410

411-
文章都是我自己研究內化後原創,如果有幫助到您,也想鼓勵我的話,歡迎請我喝一杯咖啡:laughing:
411+
文章都是我自己研究內化後原創,如果有幫助到您,也想鼓勵我的話,歡迎請我喝一杯咖啡 :laughing:
412412

413413
綠界科技ECPAY ( 不需註冊會員 )
414414

assignment_expressions_tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,4 @@ def e2():
7878
e2()
7979
```
8080

81-
簡單說, 海象運算符 `:=` 可以讓你的 code 看起來更精簡, 不需要多設定一個變數:smile:
81+
簡單說, 海象運算符 `:=` 可以讓你的 code 看起來更精簡, 不需要多設定一個變數 :smile:

asyico_tutorial/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ pip install asyncio
3030

3131
來看透過 asyncio 非同步(異步) 的 [demo1_async_1.py](https://github.com/twtrubiks/python-notes/blob/master/asyico_tutorial/demo1_async_1.py)
3232

33-
你會發現同樣的事情, 只需要2秒就執行完了:exclamation::exclamation:
33+
你會發現同樣的事情, 只需要2秒就執行完了 :exclamation: :exclamation:
3434

3535
但沒有像同步這樣按照順序一個一個執行(包含結果).
3636

@@ -57,7 +57,7 @@ async def something(num):
5757

5858
`await` 這個地方就是可以暫停或繼續的點, 當有 IO-bound 需要等待的時候,
5959

60-
就先去執行其他的東西, 等收到事件後, 再回來執行, 至於它是如何做到暫停繼續的:question:
60+
就先去執行其他的東西, 等收到事件後, 再回來執行, 至於它是如何做到暫停繼續的 :question:
6161

6262
背後就是透過 yield 實做的.
6363

cap_theorem/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ CAP 的定義分別為,
1010
* Availability ( 可用性 )
1111
* Partition tolerance ( 分區容錯 )
1212

13-
( 疑:question: 是不是感覺似曾相識,沒錯,之前也有介紹過一個 [ACID](https://github.com/twtrubiks/django-transactions-tutorial#transaction),但要注意的是,
13+
( 疑 :question: 是不是感覺似曾相識,沒錯,之前也有介紹過一個 [ACID](https://github.com/twtrubiks/django-transactions-tutorial#transaction),但要注意的是,
1414

15-
雖然英文字母一樣,但代表的意思是不一樣的哦:smiley: )
15+
雖然英文字母一樣,但代表的意思是不一樣的哦 :smiley: )
1616

1717
通常來說,這三個定義不可能同時滿足,如下圖,
1818

commitizen_pre_commit_tutorial/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
## commitizen
88

9-
commitizen 簡單說就是規格化 commit, 不然大家 commit 都亂打:sweat_smile:
9+
commitizen 簡單說就是規格化 commit, 不然大家 commit 都亂打 :sweat_smile:
1010

1111
文件可參考 [commitizen](https://github.com/commitizen-tools/commitizen)
1212

@@ -102,7 +102,7 @@ Install the git hook scripts
102102

103103
而是用一般的 commit 時, 就會跳出錯誤提醒你
104104

105-
( 第一次會慢一點, 之後就會很快了:smile: )
105+
( 第一次會慢一點, 之後就會很快了 :smile: )
106106

107107
![img](https://i.imgur.com/I7vL7KT.png)
108108

data_structure/linked_list/Introduction/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,15 +96,15 @@ def traversing_recursive(lists):
9696
traversing_recursive(node1)
9797
```
9898

99-
Linked Lists 基礎的介紹就到這邊,未來如果有碰到 leetcode 的相關練習,會補充到這邊:smile:
99+
Linked Lists 基礎的介紹就到這邊,未來如果有碰到 leetcode 的相關練習,會補充到這邊 :smile:
100100

101101
## Reference
102102

103103
* [Data structures in Python, Series 1: Linked Lists](https://medium.com/@kojinoshiba/data-structures-in-python-series-1-linked-lists-d9f848537b4d)
104104

105105
## Donation
106106

107-
如果有幫助到您,也想鼓勵我的話,歡迎請我喝一杯咖啡:laughing:
107+
如果有幫助到您,也想鼓勵我的話,歡迎請我喝一杯咖啡 :laughing:
108108

109109
![alt tag](https://i.imgur.com/LRct9xa.png)
110110

fibonacci_numbers_tutorial/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
在介紹之前,先和大家說為什麼我會提他,原因就是面試有機會會考,而且可以考很多東西。
1212

13-
那什麼是 費氏數列 呢:question:
13+
那什麼是 費氏數列 呢 :question:
1414

1515
其實也很簡單,規則如下,
1616

@@ -195,7 +195,7 @@ if __name__ == '__main__':
195195

196196
## Donation
197197

198-
文章都是我自己研究內化後原創,如果有幫助到您,也想鼓勵我的話,歡迎請我喝一杯咖啡:laughing:
198+
文章都是我自己研究內化後原創,如果有幫助到您,也想鼓勵我的話,歡迎請我喝一杯咖啡 :laughing:
199199

200200
綠界科技ECPAY ( 不需註冊會員 )
201201

hashlib_tutorial/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## hashlib
22

3-
簡單說, 可以把它當成簡單的加密(簽名):smile:
3+
簡單說, 可以把它當成簡單的加密(簽名) :smile:
44

55
### SHA-1
66

@@ -16,7 +16,7 @@ h = s.hexdigest()
1616
print(h)
1717
```
1818

19-
來做一個應用, 如何偵測檔案是否有改動過:question:
19+
來做一個應用, 如何偵測檔案是否有改動過 :question:
2020

2121
可以直接讀取檔案內容, 並且 hash 內容,
2222

interpreter/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ Many times we open the `.py` file, and the first line at the beginning will show
66

77
Ever wondered why is this :question:
88

9-
`#!/usr/bin/python3` is used to specify the interpreter:exclamation::exclamation:
9+
`#!/usr/bin/python3` is used to specify the interpreter :exclamation: :exclamation:
1010

11-
Why specify an interpreter:question:
11+
Why specify an interpreter :question:
1212

1313
For example, many people have both Python2 and Python3 installed on their systems, but 2 and 3 are not compatible.
1414

@@ -47,4 +47,4 @@ If no interpreter is specified, you can also be added to the terminal during exe
4747
python3 hello.py
4848
```
4949

50-
In short, the goal is to tell the computer which Python version to use:blush:
50+
In short, the goal is to tell the computer which Python version to use :blush:

iterator_in_tutorial.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ print(list(var_iter))
3434
# -> 可以看到 in 也會消費 iterator
3535
```
3636

37-
如果今天我們多加幾個 in 呢:question:
37+
如果今天我們多加幾個 in 呢 :question:
3838

3939
```python
4040
s1 = 'apple'
@@ -51,7 +51,7 @@ print(list(var_iter))
5151
# 所以輸出只有 'e' ('l' 為倒數第2個)
5252
```
5353

54-
上面的例子都是有找到, 如果沒有找到呢:question:
54+
上面的例子都是有找到, 如果沒有找到呢 :question:
5555

5656
```python
5757
s1 = 'apple'

pandas_tutorial/tutorial_1/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ print(pd_pivot_table['sum']['total'])
107107
| c | 1 | 0 | 1 | 2 |
108108
| All | 5 | 4 | 1 | 10 |
109109

110-
基本上到這邊就完成了:relieved:
110+
基本上到這邊就完成了 :relieved:
111111

112112
下方我要介紹的是假設前端需要這個表格的資料,
113113

pandas_tutorial/tutorial_2/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
用 pandas 也可以玩像是 database 中的 `inner join` `outer join` `left join` `right join`
88

9-
大家可以直接執行程式碼( 或看影片教學 ),這樣會比較了解:smile:
9+
大家可以直接執行程式碼( 或看影片教學 ),這樣會比較了解 :smile:
1010

1111
```python
1212
df_1 = pd.DataFrame(

pip-tools_tutorial/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ typing-extensions==4.11.0
6969

7070
## Donation
7171

72-
文章都是我自己研究內化後原創,如果有幫助到您,也想鼓勵我的話,歡迎請我喝一杯咖啡:laughing:
72+
文章都是我自己研究內化後原創,如果有幫助到您,也想鼓勵我的話,歡迎請我喝一杯咖啡 :laughing:
7373

7474
綠界科技ECPAY ( 不需註冊會員 )
7575

pyenv_tutorial/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ pyenv uninstall test_env
128128

129129
## Donation
130130

131-
文章都是我自己研究內化後原創,如果有幫助到您,也想鼓勵我的話,歡迎請我喝一杯咖啡:laughing:
131+
文章都是我自己研究內化後原創,如果有幫助到您,也想鼓勵我的話,歡迎請我喝一杯咖啡 :laughing:
132132

133133
綠界科技ECPAY ( 不需註冊會員 )
134134

pytest_tutorial/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ run test_case3
101101
PASSEDteardown...
102102
```
103103

104-
但是在 pytest 中, 有更好的方法可以取代掉這種比較舊的寫法:smile: (後面會介紹到)
104+
但是在 pytest 中, 有更好的方法可以取代掉這種比較舊的寫法 :smile: (後面會介紹到)
105105

106106
[demo3_test.py](demo3_test.py) `fixture` 這個方法主要是用來改善 `setup/teardown` 這樣的架構,
107107

python_circular_import/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,6 @@ if __name__ == '__main__':
260260
show()
261261
```
262262

263-
雖然這種方法,會有 pep8 的警告訊息:sweat_smile:
263+
雖然這種方法,會有 pep8 的警告訊息 :sweat_smile:
264264

265265
最後一種方法就是好好思考你的架構,或許說你本來就將不該拆開的部分拆開了,所以才導致 circular import。

redis_tutorial/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
很久前在 [django-docker-redis-tutorial 基本教學](https://github.com/twtrubiks/django-docker-redis-tutorial) 這篇文章有說明過,
66

7-
但想要再寫一篇:smile:
7+
但想要再寫一篇 :smile:
88

99
附上 redis [docker-compose.yml](https://github.com/twtrubiks/python-notes/blob/master/redis_tutorial/docker-compose.yml)
1010

thread_process_tutorial/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ main process quit
231231

232232
還是 `concurrent.futures` 這部份, 基本上都可以,
233233

234-
`concurrent.futures` 學習成本低一點:smile:
234+
`concurrent.futures` 學習成本低一點 :smile:
235235

236236
( 相對 `import threading` `import multiprocessing` 來說, 細節比較少 ).
237237

vcr-tutorial/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22

33
* [Youtube Tutorial - vcrpy 介紹教學 - 輕鬆把 request 錄下來](https://youtu.be/LrAxl5vfXJ4)
44

5-
建議搭配影片服用:smile:
5+
建議搭配影片服用 :smile:
66

77
## 說明
88

9-
常常在串接 api 的時候, 有時候對方的 api 很慢, 每測試一次就要等一下:sweat:
9+
常常在串接 api 的時候, 有時候對方的 api 很慢, 每測試一次就要等一下 :sweat:
1010

1111
雖然我們可以直接把 response 的內容複製下來, 貼到文字檔的文件, 然後
1212

13-
再去讀那個文件檔, 這可能是一種方法, 但有沒有更好的方法呢:question:
13+
再去讀那個文件檔, 這可能是一種方法, 但有沒有更好的方法呢 :question:
1414

15-
當然有, 就是今天要介紹的 `vcrpy`:smile:
15+
當然有, 就是今天要介紹的 `vcrpy` :smile:
1616

1717
官方文件可參考 [https://vcrpy.readthedocs.io/en/latest/installation.html](https://vcrpy.readthedocs.io/en/latest/installation.html)
1818

what_happens_when_you_type_an_URL_in_the_browser_and_press_enter/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[Youtube Tutorial - What happens when you type an URL in the browser and press enter](https://youtu.be/PDR-fIooaLE)
44

5-
當我們在瀏覽器上輸入網址並且按下 enter 之後, 到底發生了什麼事情:question:
5+
當我們在瀏覽器上輸入網址並且按下 enter 之後, 到底發生了什麼事情 :question:
66

77
這邊我們一步一步來說明,
88

@@ -14,7 +14,7 @@ browser 會先查看目前的 URL 是否有在快取之中以及快取是否有
1414

1515
這邊假設沒有快取,所以我們必須再向 server 請求,而向 server 請求的這個過程中,就會牽扯
1616

17-
到 DNS 域名解析、TCP 連接建立之類的,我將會按照順序帶大家了解:smiley:
17+
到 DNS 域名解析、TCP 連接建立之類的,我將會按照順序帶大家了解 :smiley:
1818

1919
* DNS ( Domain Name System ) 域名解析
2020

what_is_classmethod_and_staticmethod/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ simple factory method 的部分為一個是民國的年份,一個是西元的
113113

114114
## Donation
115115

116-
如果有幫助到您,也想鼓勵我的話,歡迎請我喝一杯咖啡:laughing:
116+
如果有幫助到您,也想鼓勵我的話,歡迎請我喝一杯咖啡 :laughing:
117117

118118
![alt tag](https://i.imgur.com/LRct9xa.png)
119119

what_is_f-string/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# f-string 字串格式化(python3.6) 是什麼:bulb:
1+
# f-string 字串格式化(python3.6) 是什麼 :bulb:
22

33
[Youtube Tutorial - f-string 字串格式化(python3.6) 是什麼](https://youtu.be/3agdMlpxG-4)
44

55
## %-formatting
66

7-
這種應該是大家最早接觸 python 會看到的:smirk:
7+
這種應該是大家最早接觸 python 會看到的 :smirk:
88

99
```python
1010
>>> 'Hello, %s' % ('World')
@@ -52,7 +52,7 @@ text = "World"
5252

5353
似乎感覺寫起來比較方便:+1:
5454

55-
如果用以前的寫法 ( str.format) 會一大串:sweat_smile:
55+
如果用以前的寫法 ( str.format) 會一大串 :sweat_smile:
5656

5757
```python
5858
>>> import datetime
@@ -106,9 +106,9 @@ import timeit
106106

107107
不過我有時候跑 f-string 和 %-formatting 是差不多的 (很接近),
108108

109-
不知道是不是和 python 版本有關係:expressionless:
109+
不知道是不是和 python 版本有關係 :expressionless:
110110

111-
總之,如果 python 都是使用 3.6 以上的,就建議都使用 f-string 吧:smile:
111+
總之,如果 python 都是使用 3.6 以上的,就建議都使用 f-string 吧 :smile:
112112

113113
## Template Strings
114114

what_is_private_and_protected_attribute/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,4 +143,4 @@ if __name__ == "__main__":
143143

144144
舉個例子,假如今天你有一個變數想叫做 `type`,但這個是 Keywords,所以有時候就會把變數命名為
145145

146-
`type_``type__`,但除非沒辦法,不然我會建議改其他名稱:grin:
146+
`type_``type__`,但除非沒辦法,不然我會建議改其他名稱 :grin:

what_is_the_abstractmethod/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@ b.action1()
6464
b.action2()
6565
```
6666

67-
一般來說, 這樣使用沒甚麼問題, 但有沒有更嚴謹的使用方式呢:question:
67+
一般來說, 這樣使用沒甚麼問題, 但有沒有更嚴謹的使用方式呢 :question:
6868

6969
有沒有在實例化的時候就去檢查是否都有正確實作了, 而不是等到去呼叫時, 才發現沒有實作.
7070

71-
答案是有的:smile: 透過 abstractmethod,
71+
答案是有的 :smile: 透過 abstractmethod,
7272

7373
請看 [demo2.py](https://github.com/twtrubiks/python-notes/blob/master/what_is_the_abstractmethod/demo2.py)
7474

@@ -126,7 +126,7 @@ class A(abc.ABC):
126126

127127
錯誤訊息說的很清楚, 你必須實作 abstract methods.
128128

129-
修正方法很簡單, 就把有加上 `@abc.abstractmethod` 的部份實作好即可:smile:
129+
修正方法很簡單, 就把有加上 `@abc.abstractmethod` 的部份實作好即可 :smile:
130130

131131
修正後如下 [demo2_fix.py](https://github.com/twtrubiks/python-notes/blob/master/what_is_the_abstractmethod/demo2_fix.py)
132132

@@ -159,11 +159,11 @@ b.action2()
159159

160160
```
161161

162-
這樣子可能有人會問, `abstractmethod` 可以搭配 `staticmethod``classmethod` 使用嗎:question:
162+
這樣子可能有人會問, `abstractmethod` 可以搭配 `staticmethod``classmethod` 使用嗎 :question:
163163

164164
[介紹 classmethod and staticmethod in python](https://github.com/twtrubiks/python-notes/tree/master/what_is_classmethod_and_staticmethod)
165165

166-
是可以的:smile:
166+
是可以的 :smile:
167167

168168
請參考 [demo3.py](https://github.com/twtrubiks/python-notes/blob/master/what_is_the_abstractmethod/demo3.py)
169169

@@ -214,6 +214,6 @@ B.action2('x2', 'y2').display()
214214

215215
```
216216

217-
請注意裝飾器的堆疊順序, 很重要:exclamation::exclamation: `@abc.abstractmethod` 需要放在最內層.
217+
請注意裝飾器的堆疊順序, 很重要 :exclamation: :exclamation: `@abc.abstractmethod` 需要放在最內層.
218218

219219
因為裝飾器是一層包一層的, 可參考之前的文章 [介紹 python decorator](https://github.com/twtrubiks/python-notes/tree/master/what_is_the_python_decorator).

what_is_the_functools.lru_cache/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ run very long.....
3535
10002
3636
```
3737

38-
發現了嗎:question:
38+
發現了嗎 :question:
3939

40-
竟然只顯示一次的 run very long,不是應該要 print 出兩次嗎:question:
40+
竟然只顯示一次的 run very long,不是應該要 print 出兩次嗎 :question:
4141

4242
原因就是使用了 `@functools.lru_cache()` 的關係,它會將結果快取起來,
4343

@@ -96,7 +96,7 @@ if __name__ == '__main__':
9696
[0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610]
9797
```
9898

99-
發現到了嗎:question:
99+
發現到了嗎 :question:
100100

101101
有很多重複執行的部分,其實這些地方都是多跑的,因為其實都已經計算過了,
102102

@@ -211,7 +211,7 @@ if __name__ == '__main__':
211211

212212
## Donation
213213

214-
如果有幫助到您,也想鼓勵我的話,歡迎請我喝一杯咖啡:laughing:
214+
如果有幫助到您,也想鼓勵我的話,歡迎請我喝一杯咖啡 :laughing:
215215

216216
![alt tag](https://i.imgur.com/LRct9xa.png)
217217

0 commit comments

Comments
 (0)