摘要: 1.什么是Lazy-bind模式,Early-bind模式? win32com中,Lazy-bind 模式指的是程序事先不知道对象的任何方法和属性,当对象属性,方法被调用时,程序才向对象发出一个询问(query),如果对方法和属性的询问成功,则调用成功,而Early-bind则是指程序事先知道对象的 阅读全文
posted @ 2020-03-18 23:32 JohnYang819 阅读(1418) 评论(0) 推荐(0)
摘要: You may ask me why do i strive constantly, what i am striving for? Yep, the same question haunts me again and again. When the code runs smoothly and t 阅读全文
posted @ 2020-03-10 22:07 JohnYang819 阅读(141) 评论(0) 推荐(0)
摘要: 通过几次 pip 的使用,对于默认的 pip 源的速度实在无法忍受,于是便搜集了一些国内的pip源,如下:阿里云 http://mirrors.aliyun.com/pypi/simple/中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/豆瓣(douba 阅读全文
posted @ 2020-03-02 00:48 JohnYang819 阅读(272) 评论(0) 推荐(0)
摘要: 1、系统安装配置Node.js https://nodejs.org/en/ 2、Sublime 依次点击 菜单栏 Tools => Build System => New Build System 3、在打开的新编译系统界面输入如下代码并存储为“JavaScript.sublime-build”或 阅读全文
posted @ 2020-03-01 21:05 JohnYang819 阅读(394) 评论(0) 推荐(0)
摘要: dir0/dir1/dir2/mod.py,dir0必须在环境变量中,可以import dir1,import dir1.dir2.mod。但在python3.3之前,dir1和dir2下必须存放一个__init__.py,以表明dir1,dir2是模块包,在直接或者间接调用包时,自动执行其下的__ 阅读全文
posted @ 2020-02-29 23:10 JohnYang819 阅读(176) 评论(0) 推荐(0)
摘要: 1.Anaconda 直接在官网上下载速度会很慢,建议去清华镜像去下载需要的Anaconda的各个版本:Anaconda清华镜像地址 安装时,注意 在“Advanced Installation Options”中不要勾选“Add Anaconda to my PATH environment va 阅读全文
posted @ 2020-02-28 21:03 JohnYang819 阅读(4) 评论(0) 推荐(0)
摘要: 1.搭建 (1)控制面板 >程序 >将FTP服务器打勾 (2)输入iis,或者右键桌面-->管理-->服务和应用程序 >internet information service,右键网站,添加FTP站点。 (3)cmd输入ipconfig/all,查询本机ip地址,将Ip地址填入。 (4)打勾如下 阅读全文
posted @ 2020-02-28 13:40 JohnYang819 阅读(1072) 评论(0) 推荐(0)
摘要: This blog is just shown for the most simple basic of internet programming based on two different machines sharing the same local net.While the client 阅读全文
posted @ 2020-02-26 16:09 JohnYang819 阅读(134) 评论(0) 推荐(0)
摘要: Dive into RE in Python Standard re module in python is powerful to handle text manipulation,such as searching,matching,splitting etc, and it is necess 阅读全文
posted @ 2020-02-25 00:16 JohnYang819 阅读(293) 评论(0) 推荐(0)
摘要: Python中eval,exec这两个函数有着相似的输入参数类型和执行功能,因此在用法上经常出现混淆,以至经常用错,程序易抛出错误。下面主要通过这两个函数的语法来阐述区别,并用例子来进一步说明。 首先 看下官方文档对这两个函数的说明: (1)eval(expr, globals=None, loca 阅读全文
posted @ 2020-02-19 23:33 JohnYang819 阅读(551) 评论(0) 推荐(0)