回答編集履歴

2

t

2018/05/04 06:29

投稿

gingertail
gingertail

スコア317

test CHANGED
@@ -4,19 +4,19 @@
4
4
 
5
5
  ```python
6
6
 
7
- time = "12:00"
7
+ t = "12:00"
8
8
 
9
9
 
10
10
 
11
- if "00:00" <= time and time <= "05:30":
11
+ if "00:00" <= t and t <= "05:30":
12
12
 
13
13
  print("night1")
14
14
 
15
- elif "08:45" <= time and time <= "15:10":
15
+ elif "08:45" <= t and t <= "15:10":
16
16
 
17
17
  print("day")
18
18
 
19
- elif "16:30" <= time and time <= "23:59":
19
+ elif "16:30" <= t and t <= "23:59":
20
20
 
21
21
  print("night2")
22
22
 

1

.

2018/05/04 06:29

投稿

gingertail
gingertail

スコア317

test CHANGED
@@ -3,6 +3,10 @@
3
3
 
4
4
 
5
5
  ```python
6
+
7
+ time = "12:00"
8
+
9
+
6
10
 
7
11
  if "00:00" <= time and time <= "05:30":
8
12
 
@@ -20,4 +24,6 @@
20
24
 
21
25
  print("error")
22
26
 
27
+ #day
28
+
23
29
  ```