摘要: 一、Object与Type 1、摘自Python Documentation 3.5.2的解释 Objects are Python’s abstraction for data. All data in a Python program is represented by objects or b 阅读全文
posted @ 2016-12-17 12:05 小Y看世界 阅读(11668) 评论(0) 推荐(1) 编辑
摘要: 前言 本教程源于Scipy Lecture Notes,URL:http://www.scipy-lectures.org/ 本教程若有翻译不当或概念不明之处,请大家留言,博主及时更正,以便后来的用户更好更舒适地学习本教程。 转载本文请注明出处,谢谢。 感谢 非常感谢Bill Wing和Christ 阅读全文
posted @ 2016-10-14 00:58 小Y看世界 阅读(1561) 评论(0) 推荐(1) 编辑
摘要: Q1、mongodb集合中含有特殊字符,如何操作不抛出异常? 使用db.getCollection(collection name).findOne() Q2、$group分组时聚合键的选取 Q3、$group分组时多个聚合键的表示形式 Q4、统计指定类别下不重复集合数量 T1、统计集合的数量(省略 阅读全文
posted @ 2022-04-10 00:19 小Y看世界 阅读(30) 评论(0) 推荐(0) 编辑
摘要: 在Python中可以方便地使用os模块运行其他的脚本或者程序,这样就可以在脚本中直接使用其他脚本,或者程序提供的功能,而不必再次编写实现该功能的代码。为了更好地控制运行的进程,可以使用win32process模块中的函数。如果想进一步控制进程,则可以使用ctype模块,直接调用kernel32.dl 阅读全文
posted @ 2017-11-11 00:41 小Y看世界 阅读(176) 评论(0) 推荐(0) 编辑
摘要: np.random模块 1、rand(d0, d1, ..., dn) Random values in a given shape. Create an array of the given shape and populate it with random samples from a unif 阅读全文
posted @ 2017-07-09 22:43 小Y看世界 阅读(301) 评论(0) 推荐(0) 编辑
摘要: 1、Itertools模块迭代器的种类 1.1 无限迭代器: 1.2 终止于最短输入序列的迭代器: 1.3 组合产生器 2、 repeat(object[, times]) 创建一个迭代器,它重复返回object对象,无穷尽地运行,除非指定了times参数。用作map()的参数,将不变参数映射到被调 阅读全文
posted @ 2017-05-14 05:20 小Y看世界 阅读(379) 评论(0) 推荐(0) 编辑
摘要: 1、VBA数据类型 如果不指定数据类型,VBA自动将变量指定为变体型Variant. 1.1 数据类型的转换 CBool Boolean 任何有效的字符串或数值表达式 CByte Byte 0-255 CCur Currency - CDate Date - CDbl Double - CDec D 阅读全文
posted @ 2017-05-08 01:25 小Y看世界 阅读(998) 评论(0) 推荐(0) 编辑
摘要: enumerate(iterable[, start]) --> iterator for index, value of iterable Return an enumerate object. iterable must be another object(a sequence, an iter 阅读全文
posted @ 2017-05-08 01:24 小Y看世界 阅读(301) 评论(0) 推荐(0) 编辑
摘要: 1、Outlook简介 若要从Outlook 外控制Outlook对象,必须在编写代码的工程中建立对Outlook对象库的引用。 1.1 Outlook Application说明: 代表整个Microsoft Outlook应用程序。它是层次结构中唯一可使用CreateObject方法或GetOb 阅读全文
posted @ 2017-05-08 01:24 小Y看世界 阅读(7207) 评论(0) 推荐(1) 编辑
摘要: Open 语句: 能够对文件输入/输出 (I/O)。 Open pathname For mode [Access access] [lock] As [#]filenumber [Len=reclength] pathname:指定文件名,该文件名可能还包括目录、文件夹及驱动器。 mode:指定文 阅读全文
posted @ 2017-05-08 01:23 小Y看世界 阅读(269) 评论(0) 推荐(0) 编辑
摘要: Python的方法是一种对象,可以由实例或类来进行读取。 1、无绑定类方法对象:无self 通过对类进行点号运算从而获取类的函数属性,会传回无绑定方法对象。调用该方法时,必须明确提供实例对象作为第一参数。子类方法调用基类方法就是这种形式。 2、绑定实例方法对象:self+函数对 通过对实例进行全运算 阅读全文
posted @ 2017-05-04 00:10 小Y看世界 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 1. sys (4627) 2. os (4088) 3. re (3563) 4. time (3195) 5. datetime (2214) 6. random (2135) 7. unittest (1928) 8. logging (1909) 9. urllib (1884) 10. s 阅读全文
posted @ 2017-04-29 12:09 小Y看世界 阅读(4521) 评论(0) 推荐(0) 编辑