上一页 1 ··· 33 34 35 36 37 38 39 40 41 ··· 125 下一页
摘要: ``` # -*- 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学习开发 阅读(1636) 评论(0) 推荐(0)
摘要: 对于使用虚拟环境的Python程序,直接pip freeze即可。但是对于没有使用虚拟环境,再使用pip freeze就不行了,因为它会把系统所有的包都导出。 所以使用第三方库pipreqs 安装 生成requirements.txt文件 ` 如果文件存在可以使用 force覆盖,默认不会覆盖的。 阅读全文
posted @ 2019-11-18 09:47 公众号python学习开发 阅读(677) 评论(0) 推荐(0)
摘要: 安装 然后再安装protobuf需要的依赖 验证是否安装成功 protobuf3语法介绍 1.字段前取消了required和optional两个关键字,目前可用的只有repeated关键字。 2.不可以现设置默认值了。 a.string默认为空串 b.枚举默认为第一个枚举定义的第一个值。并且必须是0 阅读全文
posted @ 2019-11-15 11:40 公众号python学习开发 阅读(1369) 评论(0) 推荐(0)
摘要: 1.AutoReconnect 2.ServerSelectionTimeoutError 阅读全文
posted @ 2019-11-14 10:03 公众号python学习开发 阅读(690) 评论(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学习开发 阅读(254) 评论(0) 推荐(0)
摘要: 进入客户端 输入查看命令 阅读全文
posted @ 2019-11-12 16:53 公众号python学习开发 阅读(372) 评论(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学习开发 阅读(333) 评论(0) 推荐(0)
摘要: ``` import string string.ascii_uppercase # 获取26个大写字母 string.ascii_lowercase # 获取26个小写字母 string.ascii_letters # 获取26个小写字母和26个大写字母 ``` 阅读全文
posted @ 2019-11-08 11:52 公众号python学习开发 阅读(5414) 评论(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学习开发 阅读(1352) 评论(0) 推荐(0)
摘要: ``` brew install libmpc brew install mpfr pip install gmpy2 ``` 阅读全文
posted @ 2019-11-07 09:54 公众号python学习开发 阅读(1834) 评论(0) 推荐(0)
上一页 1 ··· 33 34 35 36 37 38 39 40 41 ··· 125 下一页