Update app.py
Browse files
app.py
CHANGED
|
@@ -10,9 +10,9 @@ def arrange_seating(input_data):
|
|
| 10 |
total_seats = 32
|
| 11 |
empty_seats = total_seats - len(students)
|
| 12 |
|
| 13 |
-
# 如果學生數量少於32
|
| 14 |
if empty_seats > 0:
|
| 15 |
-
students.extend(['
|
| 16 |
|
| 17 |
# 隨機打亂學生列表
|
| 18 |
random.shuffle(students)
|
|
|
|
| 10 |
total_seats = 32
|
| 11 |
empty_seats = total_seats - len(students)
|
| 12 |
|
| 13 |
+
# 如果學生數量少於32,補充空位(使用 "-- --" 來佔位,兩個 - 之間有空格)
|
| 14 |
if empty_seats > 0:
|
| 15 |
+
students.extend(['-- --'] * empty_seats) # 使用 "-- --" 保持格式對齊
|
| 16 |
|
| 17 |
# 隨機打亂學生列表
|
| 18 |
random.shuffle(students)
|