摘要: 引 言 国庆期间下定决心打算学习Python,于是下载安装了开发环境。然后问题就来了,怎么开始呢?纠结一番,还是从官方帮助文档开始吧。可是全是英文啊,英语渣怎么破?那就边翻译边看边实践着做吧(顺便吐槽下百度翻译,同样的语句百度翻译出来的结果和谷歌翻译出来的结果差的不是一丢丢)。鉴于以往学习语言的经历 阅读全文
posted @ 2016-12-07 14:10 十月狐狸 阅读(13752) 评论(20) 推荐(20) 编辑
摘要: 爬虫技巧:使用selenium模拟浏览器行为 阅读全文
posted @ 2017-12-23 09:48 十月狐狸 阅读(67463) 评论(4) 推荐(6) 编辑
摘要: 生成器的定义方式有两种,一种是调用生成器函数,一种是使用生成器表达式语法 阅读全文
posted @ 2017-12-21 13:53 十月狐狸 阅读(1425) 评论(0) 推荐(0) 编辑
摘要: 指能够被内置函数`next`调用并不断返回下一个值,直到最后抛出`StopIteration`错误表示无法继续返回下一个值的对象称为迭代器(`Iterator`) 阅读全文
posted @ 2017-12-18 09:20 十月狐狸 阅读(1529) 评论(0) 推荐(1) 编辑
摘要: Python有以下三种的数值类型: 整型(integers), 浮点型(floating point numbers), 以及 复数(complex numbers) 阅读全文
posted @ 2017-11-09 14:06 十月狐狸 阅读(985) 评论(0) 推荐(0) 编辑
摘要: python的比较运算符 阅读全文
posted @ 2017-11-06 09:12 十月狐狸 阅读(1108) 评论(0) 推荐(0) 编辑
摘要: python中bool运算符按优先级顺序分别有or、and、not, 其中or、and为短路运算符 阅读全文
posted @ 2017-10-13 14:15 十月狐狸 阅读(2338) 评论(0) 推荐(0) 编辑
摘要: python中任何对象都能直接进行真假值的测试,用于if或者while语句的条件判断,也可以做为布尔逻辑运算符的操作数. 阅读全文
posted @ 2017-10-10 14:13 十月狐狸 阅读(2200) 评论(1) 推荐(0) 编辑
摘要: 引言 最新有一个winform项目使用的是DevExpress的控件,所以最近都在摸索使用这套控件,实在是佩服整套控件的强大,同时代码写起来也简洁。客户有一个需求,希望报表结果能在外接的大屏幕上定时滚动。这个报表我们使用的控件就是GridControl,查询结果一屏不能显示完全,增加一个定时器,指定 阅读全文
posted @ 2017-06-06 00:56 十月狐狸 阅读(3783) 评论(4) 推荐(2) 编辑
摘要: 引言 Python内置的常量不多,只有6个,分别是True、False、None、NotImplemented、Ellipsis、__debug__。 一. True 1. True是bool类型用来表示真值的常量。 2. 对常量True进行任何赋值操作都会抛出语法错误。 二. False 1. F 阅读全文
posted @ 2017-05-20 10:19 十月狐狸 阅读(1916) 评论(0) 推荐(0) 编辑
摘要: 引言 个人平时在写sql脚本的时候会使用到SQL Prompt这款插件,除了强大的智能提示和格式化sql语句功能,我还喜欢使用Snippets代码段功能。比如我们可以在查下分析器输入ssf后按Tab键,SQL Prompt就可以帮我们快速的输入SELECT * FROM 。 但是个人不习惯看大写的s 阅读全文
posted @ 2016-12-13 17:40 十月狐狸 阅读(1257) 评论(0) 推荐(0) 编辑
摘要: 英文文档: __import__(name, globals=None, locals=None, fromlist=(), level=0) This function is invoked by the import statement. It can be replaced (by impor 阅读全文
posted @ 2016-12-04 21:19 十月狐狸 阅读(10417) 评论(0) 推荐(0) 编辑
摘要: 英文文档: zip(*iterables) Make an iterator that aggregates elements from each of the iterables. Returns an iterator of tuples, where the i-th tuple contai 阅读全文
posted @ 2016-12-04 13:25 十月狐狸 阅读(1064) 评论(0) 推荐(0) 编辑
摘要: 英文文档: 说明 1. 当函数不接收参数时,其功能和locals函数一样,返回当前作用域内的局部变量。 2. 当函数接收一个参数时,参数可以是模块、类、类实例,或者定义了__dict__属性的对象。 阅读全文
posted @ 2016-12-03 23:49 十月狐狸 阅读(5550) 评论(0) 推荐(1) 编辑
摘要: 英文文档: class type(object) class type(name, bases, dict) With one argument, return the type of an object. The return value is a type object and generall 阅读全文
posted @ 2016-12-03 23:22 十月狐狸 阅读(3612) 评论(0) 推荐(1) 编辑
摘要: 英文文档: The constructor builds a tuple whose items are the same and in the same order as iterable‘s items. iterable may be either a sequence, a containe 阅读全文
posted @ 2016-12-03 17:19 十月狐狸 阅读(2418) 评论(0) 推荐(0) 编辑
摘要: 英文文档: super([type[, object-or-type]]) Return a proxy object that delegates method calls to a parent or sibling class of type. This is useful for acces 阅读全文
posted @ 2016-12-01 23:44 十月狐狸 阅读(2629) 评论(0) 推荐(1) 编辑
摘要: 英文文档: sum(iterable[, start]) Sums start and the items of an iterable from left to right and returns the total. start defaults to 0. The iterable‘s ite 阅读全文
posted @ 2016-11-17 08:59 十月狐狸 阅读(2386) 评论(0) 推荐(0) 编辑
摘要: 英文文档: class str(object='') class str(object=b'', encoding='utf-8', errors='strict') Return a string version of object. If object is not provided, retu 阅读全文
posted @ 2016-11-17 08:53 十月狐狸 阅读(4750) 评论(0) 推荐(0) 编辑
摘要: 英文文档: staticmethod(function) Return a static method for function. A static method does not receive an implicit first argument. The @staticmethod form 阅读全文
posted @ 2016-11-16 13:21 十月狐狸 阅读(1610) 评论(0) 推荐(0) 编辑