摘要: 简单的实例:写输入内容到创建的文件中:import osls = os.linesep #Win is '\r\n' and Linux is '\n'fileName = raw_input('Please enter your file name here:')while True: ... 阅读全文
posted @ 2014-12-20 23:46 motein 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 从《C# Via CLR》中的演化的一个小demo,探索事件的添加和删除原理,简单明了: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 usin... 阅读全文
posted @ 2014-12-20 23:02 motein 阅读(655) 评论(0) 推荐(0) 编辑
摘要: 图的存在,让数据变得形象化。无论多么复杂的东西,都是简单的组合。1 import matplotlib.pyplot as plt2 import numpy as np3 dict = {'A': 40, 'B': 70, 'C': 30, 'D': 85}4 for i, key in enu... 阅读全文
posted @ 2014-12-20 22:46 motein 阅读(8509) 评论(0) 推荐(0) 编辑