database = [
['albert'. '1234'].
['dilbert'. '4242'].
['smith'. '7524'].
['jones'. '9843']
]
username = raw_input('User name: ')
pin = raw_input('PIN code: ')
if [username.pin] in database: print 'Access granted'
这段代码一直报错,说是有语法问题(There's an error in your program: invalid syntax)。我看不出来,求助ing
['albert'. '1234'].
['dilbert'. '4242'].
['smith'. '7524'].
['jones'. '9843']
]
username = raw_input('User name: ')
pin = raw_input('PIN code: ')
if [username.pin] in database: print 'Access granted'
这段代码一直报错,说是有语法问题(There's an error in your program: invalid syntax)。我看不出来,求助ing