@@ -17,9 +17,8 @@ msgstr ""
17
17
"Generated-By : Babel 2.17.0\n "
18
18
19
19
#: ../../library/sched.rst:2
20
- #, fuzzy
21
20
msgid ":mod:`!sched` --- Event scheduler"
22
- msgstr ":mod:`sched` --- 이벤트 스케줄러"
21
+ msgstr ":mod:`! sched` --- 이벤트 스케줄러"
23
22
24
23
#: ../../library/sched.rst:9
25
24
msgid "**Source code:** :source:`Lib/sched.py`"
@@ -93,6 +92,33 @@ msgid ""
93
92
"From print_time 1652342840.369612 default\n"
94
93
"1652342840.3697174"
95
94
msgstr ""
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"
96
122
97
123
#: ../../library/sched.rst:67
98
124
msgid "Scheduler Objects"
@@ -157,14 +183,13 @@ msgid "Return ``True`` if the event queue is empty."
157
183
msgstr "이벤트 큐가 비어있으면 ``True``\\ 를 반환합니다."
158
184
159
185
#: ../../library/sched.rst:118
160
- #, fuzzy
161
186
msgid ""
162
187
"Run all scheduled events. This method will wait (using the *delayfunc* "
163
188
"function passed to the constructor) for the next event, then execute it "
164
189
"and so on until there are no more scheduled events."
165
190
msgstr ""
166
- "모든 예약된 이벤트를 실행합니다. 이 메서드는 다음 이벤트를 (생성자에 전달된 :func:` delayfunc` 함수를 사용하여) "
167
- "기다린 다음 예약된 이벤트가 소진될 때까지 계속 실행합니다."
191
+ "모든 예약된 이벤트를 실행합니다. 이 메서드는 다음 이벤트를 (생성자에 전달된 * delayfunc* 함수를 사용하여) 기다린 다음 "
192
+ "예약된 이벤트가 소진될 때까지 계속 실행합니다."
168
193
169
194
#: ../../library/sched.rst:122
170
195
msgid ""
@@ -212,5 +237,5 @@ msgstr ""
212
237
213
238
#: ../../library/sched.rst:11
214
239
msgid "event scheduling"
215
- msgstr ""
240
+ msgstr "이벤트 스케줄링 "
216
241
0 commit comments