1
fanzheng 2013-04-26 16:50:58 +08:00 1
你怎么使用 . 来分开列表呢? 不是用 , 么?
|
2
Rosicky 2013-04-26 16:54:26 +08:00 1
database = [
['albert', '1234'], ['dilbert', '2345'], ['simith', '3456'], ['johns', '4567'] ] username = raw_input("user name: ") pin = raw_input("PIN code: ") if [username, pin] in database: print "Access granted" else: print "Access rejected" |
4
rrfeng 2013-04-26 16:57:45 +08:00
哈哈哈哈,我打印的pdf也全显示 .
不过还好我比较聪明! |