上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 123 下一页
摘要: 安装 为了防止依赖冲突不推荐使用pip的方式直接安装,当然你也可以这样做 常用命令 init 用于初始化项目,在项目目录下生成pyproject.toml文件,需要注意:执行这个命令时,会要求你输入pyproject.toml配置文件中的常用选项。 install 上面也提到过,主要用来安装配置的依 阅读全文
posted @ 2019-11-18 11:54 公众号python学习开发 阅读(1673) 评论(0) 推荐(0) 编辑
摘要: ``` # -*- coding: utf-8 -*- # @Time : 2019-11-18 09:31 # @Author : cxa # @File : toml_demo.py # @Software: PyCharm import toml import os BASE_DIR = os.path.dirname(os.path.abspath(__file__)) class ... 阅读全文
posted @ 2019-11-18 10:08 公众号python学习开发 阅读(1609) 评论(0) 推荐(0) 编辑
摘要: 对于使用虚拟环境的Python程序,直接pip freeze即可。但是对于没有使用虚拟环境,再使用pip freeze就不行了,因为它会把系统所有的包都导出。 所以使用第三方库pipreqs 安装 生成requirements.txt文件 ` 如果文件存在可以使用 force覆盖,默认不会覆盖的。 阅读全文
posted @ 2019-11-18 09:47 公众号python学习开发 阅读(638) 评论(0) 推荐(0) 编辑
摘要: 安装 然后再安装protobuf需要的依赖 验证是否安装成功 protobuf3语法介绍 1.字段前取消了required和optional两个关键字,目前可用的只有repeated关键字。 2.不可以现设置默认值了。 a.string默认为空串 b.枚举默认为第一个枚举定义的第一个值。并且必须是0 阅读全文
posted @ 2019-11-15 11:40 公众号python学习开发 阅读(1286) 评论(0) 推荐(0) 编辑
摘要: 1.AutoReconnect 2.ServerSelectionTimeoutError 阅读全文
posted @ 2019-11-14 10:03 公众号python学习开发 阅读(674) 评论(2) 推荐(0) 编辑
摘要: ``` import pymongo import click # 数据库基本信息 db_configs = { 'type': 'mongo', 'host': '127.0.0.1', 'port': '27017', "user": "", "password": "", 'db_name': 'spider' } class Mongo(): def __init__(self): 阅读全文
posted @ 2019-11-12 20:17 公众号python学习开发 阅读(242) 评论(0) 推荐(0) 编辑
摘要: 进入客户端 输入查看命令 阅读全文
posted @ 2019-11-12 16:53 公众号python学习开发 阅读(365) 评论(0) 推荐(0) 编辑
摘要: const express = require('express') const cheerio = require('cheerio') const request = require("request") const app = express() app.get("/:key", functi 阅读全文
posted @ 2019-11-12 10:13 公众号python学习开发 阅读(321) 评论(0) 推荐(0) 编辑
摘要: ``` import string string.ascii_uppercase # 获取26个大写字母 string.ascii_lowercase # 获取26个小写字母 string.ascii_letters # 获取26个小写字母和26个大写字母 ``` 阅读全文
posted @ 2019-11-08 11:52 公众号python学习开发 阅读(5390) 评论(0) 推荐(0) 编辑
摘要: ``` // ==UserScript== // @name cookie // @namespace http://tampermonkey.net/ // @version 0.1 // @description try to take over the world! // @author 公众号:python学习开发 // @include * // @grant none // ==/Us 阅读全文
posted @ 2019-11-07 17:14 公众号python学习开发 阅读(1334) 评论(0) 推荐(0) 编辑
上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 123 下一页