Skip to content

Commit 1f89e6c

Browse files
committed
typo
1 parent 09ba8d7 commit 1f89e6c

File tree

9 files changed

+14
-14
lines changed

9 files changed

+14
-14
lines changed

2장_내장_시퀀스_타입/11_palindrome.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def is_palindrome3(s):
3030

3131

3232
if __name__ == "__main__":
33-
str1 = "다시 합창 합시다"
33+
str1 = "다시 합창합시다"
3434
str2 = ""
3535
str3 = "hello"
3636
print(is_palindrome(str1))

3장_컬렉션_데이터_구조/8_find_top_N_recurring_words.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ def find_top_N_recurring_words(seq, N):
99

1010

1111
def test_find_top_N_recurring_words():
12-
seq = "버피 엔젤 몬스터 잰더 윌로우 버피 몬스터 슈퍼 버피 엔젤"
12+
seq = "버피 에인절 몬스터 잰더 윌로우 버피 몬스터 슈퍼 버피 에인절"
1313
N = 3
1414
assert(find_top_N_recurring_words(seq, N) ==
15-
[("버피", 3), ("엔젤", 2), ("몬스터", 2)])
15+
[("버피", 3), ("에인절", 2), ("몬스터", 2)])
1616
print("테스트 통과!")
1717

1818

4장_구조와_모듈/hello.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ def world():
88
if __name__ == "__main__":
99
print("{0} 직접 실행됨".format(__name__))
1010
else:
11-
print("{0} 임포트 됨".format(__name__))
11+
print("{0} 임포트됨".format(__name__))

5장_객체_지향_설계/6_observer_pattern_with_set.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ def dispatch(self, message):
3232
pub.register(james)
3333
pub.register(jeff)
3434

35-
pub.dispatch("점심시간 입니다.")
35+
pub.dispatch("점심시간입니다.")
3636
pub.unregister(jeff)
37-
pub.dispatch("퇴근시간 입니다.")
37+
pub.dispatch("퇴근시간입니다.")

5장_객체_지향_설계/7_observer_pattern_with_dict.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@ def dispatch(self, message):
4242
pub.register(james, james.receive)
4343
pub.register(jeff)
4444

45-
pub.dispatch("점심시간 입니다.")
45+
pub.dispatch("점심시간입니다.")
4646
pub.unregister(jeff)
47-
pub.dispatch("퇴근시간 입니다.")
47+
pub.dispatch("퇴근시간입니다.")

5장_객체_지향_설계/8_observer_pattern_with_event.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@ def dispatch(self, event, message):
3838
pub.register("퇴근", james)
3939
pub.register("점심", jeff)
4040

41-
pub.dispatch("점심", "점심시간 입니다.")
41+
pub.dispatch("점심", "점심시간입니다.")
4242
pub.dispatch("퇴근", "저녁시간 입니다.")

6장_파이썬_고급/1_threading_with_queue.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def worker(num):
2525
for item in range(20):
2626
q.put(item)
2727

28-
# 모든 작업이 끝날때까지 대기한다(block).
28+
# 모든 작업이 끝날 때까지 대기한다(block).
2929
q.join()
3030

3131
# 워커 스레드를 종료한다(stop).

6장_파이썬_고급/2_threading_mutax.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ def worker(mutex, data, thread_safe):
66
if thread_safe:
77
mutex.acquire()
88
try:
9-
print("쓰레드 {0}: {1}\n".format(threading.get_ident(), data))
9+
print("스레드 {0}: {1}\n".format(threading.get_ident(), data))
1010
finally:
1111
if thread_safe:
1212
mutex.release()

6장_파이썬_고급/3_threading_semaphore.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ def __init__(self):
1010
def acquire(self, name):
1111
with self.lock:
1212
self.active.append(name)
13-
print("획득: {0} | 쓰레드 풀: {1}".format(name, self.active))
13+
print("획득: {0} | 스레드 풀: {1}".format(name, self.active))
1414

1515
def release(self, name):
1616
with self.lock:
1717
self.active.remove(name)
18-
print("반환: {0} | 쓰레드 풀: {1}".format(name, self.active))
18+
print("반환: {0} | 스레드 풀: {1}".format(name, self.active))
1919

2020

2121
def worker(semaphore, pool):
@@ -32,7 +32,7 @@ def worker(semaphore, pool):
3232
semaphore = threading.Semaphore(3)
3333
for i in range(10):
3434
t = threading.Thread(
35-
target=worker, name="쓰레드 " + str(i), args=(semaphore, pool))
35+
target=worker, name="스레드 " + str(i), args=(semaphore, pool))
3636
t.start()
3737
threads.append(t)
3838
for t in threads:

0 commit comments

Comments
 (0)