一、说在前面 我在用pip下载包时经常有下载比较慢和如下错误的问题 Could not fetch URL https://pypi.tuna.tsinghua.edu.cn/simple/pipenv/ 二、解决方法 默认pip是使用Python官方的源,但是由于国外官方源经常被墙,导致不可用,我 ...
分类:
编程语言 时间:
2021-01-26 11:47:24
阅读次数:
0
万能异常之try: except <Errortype> as <alias> : else: finally:(转) 链接: try: except <Errortype> as <alias> : else: finally: ...
分类:
编程语言 时间:
2021-01-26 11:38:53
阅读次数:
0
一、Python环境准备 远程服务器上Python版本要与本地想匹配,这里本地使用Anaconda来进行安装,远程服务器之间安装。 wget --no-check-certificate https://www.python.org/ftp/python/3.6.7/Python-3.6.7.tgz ...
分类:
编程语言 时间:
2021-01-25 11:30:39
阅读次数:
0
Problem LeetCode Given the root of a binary tree, return the sum of every tree node's tilt. The tilt of a tree node is the absolute difference between ...
分类:
编程语言 时间:
2021-01-25 11:29:21
阅读次数:
0
感谢作者> https://www.cnblogs.com/botoo/p/11762045.html CentOS7中自带的python版本是python-2.7.5,由于新开的虚拟机需要使用python3,于是便升级一下版本。 安装Python3.7.3 官网下载地址:https://www.p ...
分类:
编程语言 时间:
2021-01-25 11:22:41
阅读次数:
0
作为一个Python菜鸡,有些常用的代码和方法还是要整理一下的: #!python3 ########################################################################################################### ...
分类:
编程语言 时间:
2021-01-25 11:18:58
阅读次数:
0
Chapter 7 - Collaborative Analytics with Plotly Segment 2 - Creating statistical charts Setting up to use Plotly within Jupyter import numpy as np imp ...
分类:
编程语言 时间:
2021-01-25 11:18:24
阅读次数:
0
{eyou:tag getall='1' row='50' sort='hot'} <a href='{$field.link}'>{$field.tag}</a> {/eyou:tag} getall='' 获取类型,0为当前内容页TAG标记,1为获取全部TAG标记 sort='' 标签排序方式 ...
分类:
其他好文 时间:
2021-01-25 11:16:55
阅读次数:
0
题解 并不需要什么高级数据结构 用树链剖分维护 对于每种颜色开个 \(\text{vector}\),然后把是这种颜色的点的 \(\text{dfs}\) 序加进来排序 对于 \([dfn[top[x]],dfn[x]]\) 这一区间问有没有某种颜色 相当于问某种颜色有没有至少一个在这个区间内 直接 ...
分类:
其他好文 时间:
2021-01-25 11:14:34
阅读次数:
0
编译Qt5.14.2的qtdeclarative发生错误:building qtqml requires python,系统是ubuntu18.04,安装有python3,修复需要做2步: 1.用nano或者vi修改别名文件 $ vi .bashrc 添加别名 alias python=python ...
分类:
编程语言 时间:
2021-01-25 11:14:13
阅读次数:
0