Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lottery.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def get_interactive_input():

last_floor = input("请输入参与抽奖的最后楼层(可选,直接回车使用所有楼层): ")
if last_floor:
if not last_floor.isdigit() or int(last_floor) < 0:
if not last_floor.isdigit() or int(last_floor) < 1:
print("错误: 最后楼层必须为大于0的整数")
continue
last_floor = int(last_floor)
Expand Down