摘要: quotes = ('A man is not complete until he is married. Then he is finished.', 'As I said before, I never repeat myself.', 'Behind a successful man is an exhausted woman.', ... 阅读全文
posted @ 2018-02-04 21:59 安迪9468 阅读(289) 评论(0) 推荐(0) 编辑
摘要: import xml.etree.ElementTree as etree import json class JSONConnector: def __init__(self, filepath): self.data = dict() with open(filepath, mode='r', encoding='utf-8') as f... 阅读全文
posted @ 2018-02-04 21:15 安迪9468 阅读(103) 评论(0) 推荐(0) 编辑
摘要: class Frog: def __init__(self, name): self.name = name def __str__(self): return self.name def interact_with(self, obstacle): print('{} the Frog encounters ... 阅读全文
posted @ 2018-02-04 21:15 安迪9468 阅读(103) 评论(0) 推荐(0) 编辑