INIT (I swear I will never re-init this repo again)
This commit is contained in:
commit
3db85006cc
105 changed files with 16927 additions and 0 deletions
12
scripts/random-room.py
Normal file
12
scripts/random-room.py
Normal file
|
@ -0,0 +1,12 @@
|
|||
# 用来随机分配房间号的小东西 (/ω\)
|
||||
import random
|
||||
|
||||
|
||||
def generate_room():
|
||||
floor = str(random.randint(1, 14)).zfill(2) # 01-14
|
||||
room = str(random.randint(1, 99)).zfill(2) # 01-99
|
||||
wing = random.choice(["A", "B"]) # A or B
|
||||
return f"{floor}{room}{wing}"
|
||||
|
||||
|
||||
print(generate_room())
|
Loading…
Add table
Add a link
Reference in a new issue