好文档 - 专业文书写作范文服务资料分享网站

Python基础语法 - 图文

天下 分享 时间: 加入收藏 我要投稿 点赞

.. . .. . .

59 f.close()

60 print \61 break

62 elif operation == \

63 name = raw_input(\64 if name in contacts: 65 del contacts[name] 66 f = file(data, \

67 cPickle.dump(contacts, f) 68 f.close()

69 print \70 else:

71 print \72 elif operation == \73 while True:

74 name = raw_input(\75 if name == \76 break

77 if not name in contacts:

78 print \79 continue 80 else:

81 phone = raw_input(\82 mail = raw_input(\

83 contacts[name].Update(name, phone, mail) 84 f = file(data, \

85 cPickle.dump(contacts, f) 86 f.close()

87 print \88 break

89 elif operation == \

90 name = raw_input(\91 if name in contacts:

92 contacts[name].display() 93 else:

94 print \95 elif operation == \

96 for name, contact in contacts.items(): 97 contact.display() 98 else:

99 print \

S. . . . . ..

Python基础语法 - 图文

.......59f.close()60print\61break62
推荐度:
点击下载文档文档为doc格式
422nc58o2y3bj0w6iip07zlrl1bk8m012yl
领取福利

微信扫码领取福利

微信扫码分享