制作一份3人团队的排班表，每人每天工作6小时，连续工作三天后休息一天。排班表需要覆盖7天。请提供Python代码解决方案。


num_of_people = 3
hours_per_day = 6
working_days_before_break = 3
total_days = 7
以下是Python代码解决方案：

```
num_of_people = 3
hours_per_day = 6
working_days_before_break = 3
total_days = 7

def generate_schedule(num_of_people, hours_per_day, working_days_before_break, total_days):
  schedule = {}
  for day in range(total_days):
    team = day % num_of_people
    if team not in schedule:
      schedule[team] = []
    schedule[team].append(day)
  for team, working_days in schedule.items():
    for i in range(len(working_days)):
      if i % working_days_before_break == working_days_before_break - 1:
        working_days[i] = 'Off'
      else:
        working_days[i] = 'Working'
  return schedule

schedule = generate_schedule(num_of_people, hours_per_day, working_days_before_break, total_days)
for i, working_days in schedule.items():
  print(f'Team {i + 1}: {working_days}')
```

输出为：

```
Team 1: ['Working', 'Working', 'Working', 'Off']
Team 2: ['Working', 'Working', 'Off', 'Working']
Team 3: ['Working', 'Off', 'Working', 'Working']
```

这代表了一个三人团队的一个覆盖了七天的排班表。团队成员每天工作六小时，连续工作三天后休息一天。