上一页 1 ··· 66 67 68 69 70 71 72 73 74 ··· 123 下一页
摘要: ``` scrapyd-deploy -p chahao -v 1.0 --build-egg chahao.egg ``` 阅读全文
posted @ 2018-09-28 09:37 公众号python学习开发 阅读(721) 评论(0) 推荐(0) 编辑
摘要: from typing import List class Solution: def two_sum(self, nums: List[int], target: int): d = {} for index, value in enumerate(nums): if value in d: re 阅读全文
posted @ 2018-09-27 22:23 公众号python学习开发 阅读(408) 评论(0) 推荐(0) 编辑
摘要: 安装虚拟环境 安装python3.6 找到 用户基础目录 指定python版本的方式 安装 用户范围内安装 检查是否安装 创建虚拟环境 通过创建虚拟环境你可以有一个干净的python环境,并且每一个项目是独立的。 在当前工程的根目录下,创建虚拟环境。 这会在当前项目下创建一个文件夹,其中包含隔离的p 阅读全文
posted @ 2018-09-27 10:01 公众号python学习开发 阅读(275) 评论(0) 推荐(0) 编辑
摘要: 用函数装饰函数 这种比较常见首先定义装饰器函数 然后定义一个需要装饰的函数 调用add。 输出 用类装饰函数 然后定义一个需要装饰的函数 调用add。 输出 类装饰类的方法 一个装饰器类 然后定义一个需要装饰的类,装饰add方法 调用并输出 阅读全文
posted @ 2018-09-27 00:12 公众号python学习开发 阅读(159) 评论(0) 推荐(0) 编辑
摘要: ``` # -*- coding: utf-8 -*- # @Time : 2018/9/11 17:16 # @Author : cxa # @File : mongotest.py # @Software: PyCharm import pymongo client = pymongo.MongoClient(host='172.17.0.170') db = client.库... 阅读全文
posted @ 2018-09-26 15:55 公众号python学习开发 阅读(289) 评论(0) 推荐(0) 编辑
摘要: ``` # -*- coding: utf-8 -*- # @Time : 2018/9/26 14:03 # @Author : cxa # @File : pickledemo.py # @Software: PyCharm import pickle fname="banner.p" with open(fname,'rb') as fs: data=pickle.lo... 阅读全文
posted @ 2018-09-26 14:31 公众号python学习开发 阅读(305) 评论(0) 推荐(0) 编辑
摘要: 代码 结果: 阅读全文
posted @ 2018-09-26 13:43 公众号python学习开发 阅读(237) 评论(0) 推荐(0) 编辑
摘要: text="那一大推乱码" 方案1 方案2 阅读全文
posted @ 2018-09-26 11:17 公众号python学习开发 阅读(235) 评论(0) 推荐(0) 编辑
摘要: 网络管理员在线工具 http://www.mxcz.net/ asciitohex https://www.asciitohex.com/ 各种密码解密 https://gchq.github.io/CyberChef 阅读全文
posted @ 2018-09-25 22:58 公众号python学习开发 阅读(231) 评论(0) 推荐(0) 编辑
摘要: 服务端 客户端 阅读全文
posted @ 2018-09-19 23:22 公众号python学习开发 阅读(432) 评论(0) 推荐(0) 编辑
上一页 1 ··· 66 67 68 69 70 71 72 73 74 ··· 123 下一页