logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

ubuntu18.04 安装pip并修改为阿里云pip源

安装pip3sudo apt-get install python3-pip创建pip.config文件mkdir ~/.pipvim ~/.pip/pip.conf添加pip源[global]index-url = http://mirrors.aliyun.com/pypi/simple/[install]trusted-host=mirrors.aliyun.com...

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 服务

docker配置阿里云镜像加速器

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

ant-desgin for vue 无法显示表单前必填前红色*号

在表单规则中填写了required: true,之后,还无法显示红色星号。需要查看最上层表单是否有hide-required-mark,如果有,删除掉之后,即可解决。

line warning: binding “gutter“ should be on a new line

此问题是由于.eslintrc.js文件中的vue/max-attributes-per-line配置错误产生的解决办法根据错误提示更改相关配置即可,更改完成之后重新构建项目。举例:{"vue/max-attributes-per-line": ["error", {"singleline": 1,"multiline": {"max": 1,"allowFirstLine": false}}]}

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它是用来指定用什么解释器运行脚本以及解释器所在的位置。也就是说你...

到底了