Skip to content

Instantly share code, notes, and snippets.

View keitheis's full-sized avatar

Keith Yang keitheis

View GitHub Profile
import re
# module global
room_terms_match = {
'rooms': r'房',
'livingrooms': r'廳',
}
def print_missing_number(nums):
should_be = 0
current = 0
for i, n in enumerate(nums, 1):
current += n
should_be += i
print(f"should_be: {should_be}, current: {current}")
print(should_be - current)