import random
floor = 9
room = 24
n = int(input("请输入您需要的房间数:"))
b = "{x}0{y}"
dorm_list = []
for i in range(n):
x = random.randint(1, floor)
y = random.randint(1, room)
if i <= n:
dorm_list.append(b.format(x=x, y=y))
print("网络系可以使用的房间在dorm_list内有:")
for j in dorm_list:
print(j, end=" ")