摘要: 1 from tkinter import * 2 from tkinter.scrolledtext import ScrolledText 3 4 def load(): 5 with open(filename.get()) as file: 6 contents.delete('1.0', 阅读全文
posted @ 2018-12-21 15:12 子觉 阅读(1015) 评论(0) 推荐(0) 编辑
摘要: 1 # coding:utf-8 2 # 一个简单的数据库 3 # 一个将人名用作键的字典。每个人都用一个字典表示, 4 # 字典包含键'phone'和'addr',它们分别与电话号码和地址相关联 5 6 people = { 7 'Alice':{ 8 'phone': '2341', 9 'ad 阅读全文
posted @ 2018-12-21 11:51 子觉 阅读(108) 评论(0) 推荐(0) 编辑