all = 'pai.txt'
with open(all) as file_object:
number = file_object.readlines()
num = ''
for i in number:
num += i.rstrip()
birthday = input(print('Please enter the birthday: ')
if birthday in num:
print('Your birthday: ' + birthday +
'is in the pai. ')
else:
print('Your birthday: ' + birthday +
'is not in the pai. ')
提示:
if birthday in num:
^
SyntaxError: invalid syntax