質問編集履歴

5

カテゴリ PHPを削除しました。

2018/03/22 04:36

投稿

tamasa
tamasa

スコア11

test CHANGED
File without changes
test CHANGED
@@ -3,6 +3,10 @@
3
3
  https://pypi.python.org/pypi/schedule
4
4
 
5
5
 
6
+
7
+
8
+
9
+ time_sample.py
6
10
 
7
11
  > ```python2
8
12
 

4

インデント修正

2018/03/22 04:36

投稿

tamasa
tamasa

スコア11

test CHANGED
File without changes
test CHANGED
@@ -24,7 +24,7 @@
24
24
 
25
25
 
26
26
 
27
- schedule.every(2).seconds.do(job)
27
+ schedule.every(2).seconds.do(job)
28
28
 
29
29
 
30
30
 

3

改行の修正

2018/03/22 01:36

投稿

tamasa
tamasa

スコア11

test CHANGED
File without changes
test CHANGED
@@ -10,23 +10,31 @@
10
10
 
11
11
  import schedule
12
12
 
13
+
14
+
13
15
  import time
14
16
 
15
17
 
16
18
 
17
19
  def job():
18
20
 
21
+
22
+
19
23
  print("I'm working...")
20
24
 
21
- schedule.every(2).seconds.do(job)
22
25
 
23
26
 
27
+ schedule.every(2).seconds.do(job)
24
28
 
25
29
 
26
30
 
27
31
  while True:
28
32
 
33
+
34
+
29
35
  schedule.run_pending()
36
+
37
+
30
38
 
31
39
  time.sleep(1)
32
40
 

2

改行を修正しました。

2018/03/22 01:32

投稿

tamasa
tamasa

スコア11

test CHANGED
File without changes
test CHANGED
@@ -5,6 +5,8 @@
5
5
 
6
6
 
7
7
  > ```python2
8
+
9
+
8
10
 
9
11
  import schedule
10
12
 

1

コメントアウトを削除しました。

2018/03/22 01:30

投稿

tamasa
tamasa

スコア11

test CHANGED
File without changes
test CHANGED
@@ -18,15 +18,7 @@
18
18
 
19
19
  schedule.every(2).seconds.do(job)
20
20
 
21
- #schedule.every(10).minutes.do(job)
22
21
 
23
- #schedule.every().hour.do(job)
24
-
25
- #schedule.every().day.at("10:30").do(job)
26
-
27
- #schedule.every(5).to(10).days.do(job)
28
-
29
- #schedule.every().wednesday.at("13:15").do(job)
30
22
 
31
23
 
32
24