@@ -17,9 +17,8 @@ msgstr ""
1717"Generated-By : Babel 2.17.0\n "
1818
1919#: ../../library/sched.rst:2
20- #, fuzzy
2120msgid ":mod:`!sched` --- Event scheduler"
22- msgstr ":mod:`sched` --- 이벤트 스케줄러"
21+ msgstr ":mod:`! sched` --- 이벤트 스케줄러"
2322
2423#: ../../library/sched.rst:9
2524msgid "**Source code:** :source:`Lib/sched.py`"
@@ -93,6 +92,33 @@ msgid ""
9392"From print_time 1652342840.369612 default\n"
9493"1652342840.3697174"
9594msgstr ""
95+ ">>> import sched, time\n"
96+ ">>> s = sched.scheduler(time.time, time.sleep)\n"
97+ ">>> def print_time(a='default'):\n"
98+ "... print(\" From print_time\" , time.time(), a)\n"
99+ "...\n"
100+ ">>> def print_some_times():\n"
101+ "... print(time.time())\n"
102+ "... s.enter(10, 1, print_time)\n"
103+ "... s.enter(5, 2, print_time, argument=('positional',))\n"
104+ "... # 우선순위가 더 높음에도 불구하고, enter() 가 상대적이라서 'keyword' 는 'positional' "
105+ "다음에 실행됩니다\n"
106+ "... s.enter(5, 1, print_time, kwargs={'a': 'keyword'})\n"
107+ "... s.enterabs(1_650_000_000, 10, print_time, argument=(\" first "
108+ "enterabs\" ,))\n"
109+ "... s.enterabs(1_650_000_000, 5, print_time, argument=(\" second "
110+ "enterabs\" ,))\n"
111+ "... s.run()\n"
112+ "... print(time.time())\n"
113+ "...\n"
114+ ">>> print_some_times()\n"
115+ "1652342830.3640375\n"
116+ "From print_time 1652342830.3642538 second enterabs\n"
117+ "From print_time 1652342830.3643398 first enterabs\n"
118+ "From print_time 1652342835.3694863 positional\n"
119+ "From print_time 1652342835.3696074 keyword\n"
120+ "From print_time 1652342840.369612 default\n"
121+ "1652342840.3697174"
96122
97123#: ../../library/sched.rst:67
98124msgid "Scheduler Objects"
@@ -157,14 +183,13 @@ msgid "Return ``True`` if the event queue is empty."
157183msgstr "이벤트 큐가 비어있으면 ``True``\\ 를 반환합니다."
158184
159185#: ../../library/sched.rst:118
160- #, fuzzy
161186msgid ""
162187"Run all scheduled events. This method will wait (using the *delayfunc* "
163188"function passed to the constructor) for the next event, then execute it "
164189"and so on until there are no more scheduled events."
165190msgstr ""
166- "모든 예약된 이벤트를 실행합니다. 이 메서드는 다음 이벤트를 (생성자에 전달된 :func:` delayfunc` 함수를 사용하여) "
167- "기다린 다음 예약된 이벤트가 소진될 때까지 계속 실행합니다."
191+ "모든 예약된 이벤트를 실행합니다. 이 메서드는 다음 이벤트를 (생성자에 전달된 * delayfunc* 함수를 사용하여) 기다린 다음 "
192+ "예약된 이벤트가 소진될 때까지 계속 실행합니다."
168193
169194#: ../../library/sched.rst:122
170195msgid ""
@@ -212,5 +237,5 @@ msgstr ""
212237
213238#: ../../library/sched.rst:11
214239msgid "event scheduling"
215- msgstr ""
240+ msgstr "이벤트 스케줄링 "
216241
0 commit comments