Dockerfile的部分内容如下: RUN mkdir /root/.pip && echo -e "[global]\nindex-url = https://pypi.tuna.tsinghua.edu.cn/simple" > /root/.pip/pip.conf RUN pip inst ...
分类:
其他好文 时间:
2020-03-26 12:07:48
阅读次数:
117
首先,常用的国内镜像: 1 http://pypi.douban.com/simple/ 豆瓣 2 http://mirrors.aliyun.com/pypi/simple/ 阿里 3 http://pypi.hustunique.com/simple/ 华中理工大学 4 http://pypi. ...
分类:
编程语言 时间:
2020-03-26 12:00:04
阅读次数:
196
914. 翻转游戏 中文English You are playing the following Flip Game with your friend: Given a string that contains only two characters: + and -, you can flip ...
分类:
其他好文 时间:
2020-03-26 01:06:15
阅读次数:
79
A. Sum of Odd Integers 首先可以算出从1开始到第k个奇数之和。如果和大于n,则不可能存在k个奇数加和等于n,否则用n减去前k个奇数的和,这个差值若是偶数,直接加到最大的奇数上,就可以满足题意要求,否则输出no。 1 #include<bits/stdc++.h> 2 using ...
分类:
其他好文 时间:
2020-03-26 01:02:17
阅读次数:
72
import sklearn.datasets.make_moons时: 报错: ModuleNotFoundError: No module named 'numpy.testing.nosetester' 原因: numpy、sklearn、scipy、joblib版本不兼容。 解决方法: 将所 ...
分类:
其他好文 时间:
2020-03-25 23:30:46
阅读次数:
978
安装Selenium和下载Driver 安装selenium pip3 install selenium -i http://pypi.douban.com/simple --trusted-host pypi.douban.com 下载Driver 打开:http://npm.taobao.org ...
分类:
其他好文 时间:
2020-03-25 21:12:37
阅读次数:
58
1、采用国内源,加速下载模块的速度2、常用pip源(上一篇博客介绍过):– 豆瓣:https://pypi.douban.com/simple– 阿里:https://mirrors.aliyun.com/pypi/simple3、加速安装的命令:– >: pip install -i https: ...
分类:
编程语言 时间:
2020-03-25 14:57:23
阅读次数:
92
class Game(object): top_score = 0 # 类属性 def __init__(self, name): self.name = name # 实例属性 @staticmethod def show_help(): # 静态方法 print('帮助信息:。。。') @cla ...
分类:
其他好文 时间:
2020-03-25 13:28:07
阅读次数:
52
Petya has a rectangular Board of size n×mn×m . Initially, kk chips are placed on the board, ii -th chip is located in the cell at the intersection of ...
分类:
其他好文 时间:
2020-03-25 01:05:14
阅读次数:
81
"L1 014 简单题 (5分)" 这次真的没骗你 ———— 这道超级简单的题目没有任何输入。 你只需要在一行中输出事实: 就可以了。 输入样例: 输出样例: 代码: ...
分类:
其他好文 时间:
2020-03-24 18:47:22
阅读次数:
44