logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

ubuntu 18.04以超级管理员权限运行vscode

sudo code --user-data-dir ="~/.vscode-root"

win10 解决 Failed to register Fiddler as the system proxy

win10 安装 fiddler 后提示 “Failed to register Fiddler as the system proxy.”需要在服务中启动 WinHTTP Web Proxy Auto-Discovery Service 服务

mysql8.0.11 :connector.errors.NotSupportedError: Authentication plugin

python3.5连接mysql8.0.11 出现 mysql.connector.errors.NotSupportedError: Authentication plugin 'caching_sha2_password' is not supported 错误。原因是因为mysql8.0.11使用了Use Strong Password Encryption for Authentica..

docker配置阿里云镜像加速器

sudo vim /etc/docker/daemon.json{ "registry-mirrors": ["https://xxxxxxx.mirror.aliyuncs.com"] }

tornado 增加日志模块

log类#!/usr/bin/env python# -*-coding:utf-8 -*-import logging.handlersclass Logger(logging.Logger):def __init__(self, filename=None):super(Logger, self).__init__(self)#...

python thread group argument must be none for now

http://stackoverflow.com/questions/15349997/assertionerror-when-threading-in-python出错的代码:t = threading.Thread(crawl_temp, args=(thread_count, target_url, max_depth, crawl_timeout, crawl_interval))加...

用 python 修改文件中指定的行数

#! /bin/pythonfilename='setup.ini'lines=[]with open(filename,'r') as f:lines=f.readlines()lines[1]='namespace = qmone-33c49600-4c22-486d-a397-e4f02bcdcf18' + '\n'lines[2]='interface = mon-...

关于Python脚本开头两行的:#!/usr/bin/env python 和# -*- coding: utf-8 -*-的作用

Python脚本开头都有下面的两行,*而且一定在前两行*#!/usr/bin/env python# -*- coding:utf-8 -*-或者#!/usr/bin/python# -*- coding:utf-8 -*-1.#!/usr/bin/env python或#!/usr/bin/python它是用来指定用什么解释器运行脚本以及解释器所在的位置。也就是说你...

到底了