@@ -111,7 +111,7 @@ In order to store the bookings, you should create a list of lists of booleans. T
111111 ```python
112112 bookings = [[False ] * 24 , [False ] * 24 , [False ] * 24 , [False ] * 24 , [False ] * 24 , [False ] * 24 , [False ] * 24 ]
113113 duration = 2
114- start = 14
114+ start_time = 14
115115 week = 1
116116 print (bookings[week][14 ]) # 判断 14:00 本身是否空闲
117117 print (bookings[week][14 + 1 ]) # 判断第一个小时是否空闲
@@ -123,7 +123,7 @@ In order to store the bookings, you should create a list of lists of booleans. T
123123 ```python
124124 bookings = [[False ] * 24 , [False ] * 24 , [False ] * 24 , [False ] * 24 , [False ] * 24 , [False ] * 24 , [False ] * 24 ]
125125 duration = 3 # 待三个小时
126- start = 14
126+ start_time = 14
127127 week = 1
128128 print (bookings[week][14 ])
129129 print (bookings[week][14 + 1 ]) # 判断第一个小时是否空闲
@@ -136,7 +136,7 @@ In order to store the bookings, you should create a list of lists of booleans. T
136136 ```python
137137 bookings = [[False ] * 24 , [False ] * 24 , [False ] * 24 , [False ] * 24 , [False ] * 24 , [False ] * 24 , [False ] * 24 ]
138138 duration = 3 # 待三个小时
139- start = 14
139+ start_time = 14
140140 week = 1
141141 # 判断三个小时 or 三个小时以上,我如下执行
142142 print (bookings[week][14 ])
@@ -150,7 +150,7 @@ In order to store the bookings, you should create a list of lists of booleans. T
150150 ```python
151151 bookings = [[False ] * 24 , [False ] * 24 , [False ] * 24 , [False ] * 24 , [False ] * 24 , [False ] * 24 , [False ] * 24 ]
152152 duration = 3 # 待三个小时
153- start = 14
153+ start_time = 14
154154 week = 1
155155 # 判断三个小时 or 三个小时以上,我如下执行
156156 print (bookings[week][14 ])
@@ -164,9 +164,9 @@ In order to store the bookings, you should create a list of lists of booleans. T
164164 ```python
165165 bookings = [[False ] * 24 , [False ] * 24 , [False ] * 24 , [False ] * 24 , [False ] * 24 , [False ] * 24 , [False ] * 24 ]
166166 duration = 3 # 待三个小时
167- start = 14
167+ start_time = 14
168168 week = 1
169- print (bookings[week][14 + 0 ]) # 可以制作一个 +0 (类似数学当中构造一个:规律 or 公式)类似数学几何画辅助线
169+ print (bookings[week][start_time + 0 ]) # 可以制作一个 +0 (类似数学当中构造一个:规律 or 公式)类似数学几何画辅助线
170170 print (bookings[week][start_time + 1 ])
171171 print (bookings[week][start_time + 2 ])
172172 # print(bookings[week][start_time + 3])
@@ -188,23 +188,23 @@ In order to store the bookings, you should create a list of lists of booleans. T
188188 ```python
189189 bookings = [[False ] * 24 , [False ] * 24 , [False ] * 24 , [False ] * 24 , [False ] * 24 , [False ] * 24 , [False ] * 24 ]
190190 duration = 3 # 待三个小时
191- start = 14
191+ start_time = 14
192192 week = 1
193193 # 如何得到0~3?
194194 for i in range (3 ):
195- print (bookings[week][start + i])
195+ print (bookings[week][start_time + i])
196196 ```
197197
1981989 . Step 6 :
199199
200200 ```python
201201 bookings = [[False ] * 24 , [False ] * 24 , [False ] * 24 , [False ] * 24 , [False ] * 24 , [False ] * 24 , [False ] * 24 ]
202202 duration = 3 # 待三个小时
203- start = 14
203+ start_time = 14
204204 week = 1
205205 # 如何得到0~3?
206206 for i in range (duration):
207- print (bookings[week][start + i])
207+ print (bookings[week][start_time + i])
208208 ```
209209
210210
0 commit comments