上一页 1 ··· 4 5 6 7 8 9 10 11 12 下一页
摘要: 1、字符串方法endswith endswith方法: 其中suffix支持字符串构成的元组(tuple)。 输出结果为:False 2、os.path.splittext os.path.splittext():将文件名和扩展名分开,返回由文件名和扩展名构成的元组 os.path.split(): 阅读全文
posted @ 2018-12-04 09:38 RobotsRising 阅读(1170) 评论(0) 推荐(0) 编辑
摘要: 1、__get__的用法 参见:https://www.cnblogs.com/saolv/p/6890645.html 2、Flask中的使用 2.1、Flask中源码 Flask类: 内置的配置值定义参见:http://www.pythondoc.com/flask/config.html Co 阅读全文
posted @ 2018-12-03 18:44 RobotsRising 阅读(1979) 评论(0) 推荐(0) 编辑
摘要: 1、遍历globals() 执行结果:出错,dictionary changed size during iteration 出错原因:程序执行到“for name, obj in iteritems(globals())”时,将name,obj加入到globals()中,因此字典的大小改变 2、定 阅读全文
posted @ 2018-12-03 16:02 RobotsRising 阅读(983) 评论(0) 推荐(0) 编辑
摘要: 1、不使用__slots__ 默认情况下Python用一个字典来保存一个对象的实例属性。这非常有用,因为它允许我们在运行时去设置任意的新属性。 2、使用__slots__ 执行时产生错误: 具体参见:https://blog.csdn.net/qq_35636311/article/details/ 阅读全文
posted @ 2018-10-25 17:45 RobotsRising 阅读(1274) 评论(0) 推荐(0) 编辑
摘要: 1、简单Flask程序 2、Flask运行流程 2.1、实例化Flask类生产app对象 2.2、注册url,路由,endpoint到内存中 2.2.1、class Flask(_PackageBoundObject) 类中route()方法 2.2.2、class Flask(_PackageBo 阅读全文
posted @ 2018-10-24 19:22 RobotsRising 阅读(1226) 评论(0) 推荐(0) 编辑
摘要: 1、HiJson 参考链接:https://blog.csdn.net/u010429286/article/details/78857302 2、Chrome插件 参考链接:https://blog.csdn.net/yuhuafeixian/article/details/72551781 3、 阅读全文
posted @ 2018-10-23 16:48 RobotsRising 阅读(544) 评论(0) 推荐(0) 编辑
摘要: 1、Redis的安装 系统为Ubuntu 16.04。使用命令安装: 2、配置Redis 通过vim打开/etc/redis/redis.conf,配置端口为6379(默认已经配置); 配置监听的端口,默认为127.0.0.1,如果需要其他客户端连接,则需要配置为0.0.0.0; 配置连接密码,ab 阅读全文
posted @ 2018-10-21 17:26 RobotsRising 阅读(250) 评论(0) 推荐(0) 编辑
摘要: 1、select模块简介 2、select 多并发socket 例子 2.1、select socket server #_*_coding:utf-8_*_ import select import socket import sys import queue server = socket.so 阅读全文
posted @ 2018-10-20 02:12 RobotsRising 阅读(497) 评论(0) 推荐(0) 编辑
摘要: 1、threading简介 2、创建线程 2.1、创建2个线程 2.2、创建多个线程 2.3、使用线程锁 阅读全文
posted @ 2018-10-20 02:11 RobotsRising 阅读(310) 评论(0) 推荐(0) 编辑
摘要: 1、Form组件简介 2、Form组件的使用 2.1、Form组件的引用 2.2、定义一个form类 2.3、实例化 2.4、生产HTML 2.4.1、方式一 2.4.2、方式二 2.5、提交数据校验 7、Form中Field的类型 8、Form中内置插件 9、常用选择插件 10、自定义验证规则 1 阅读全文
posted @ 2018-10-20 02:11 RobotsRising 阅读(185) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 下一页