设置对应环境变量即可: set(ENV{http_proxy} "http://proxy.cd.intel.com:911") set(ENV{https_proxy} "https://proxy.cd.intel.com:911") 或者在Bash中Export相应环境变量。 socks5:/ ...
分类:
其他好文 时间:
2021-06-16 17:37:36
阅读次数:
0
public class DoublePointer { public static int[] a = new int[]{1, 3, 4, 9}; public static int[] b = new int[]{0, 3, 4, 4}; public static void main(Str ...
分类:
编程语言 时间:
2021-06-15 18:46:19
阅读次数:
0
些许细节 在基础的编程中,总有那么些细节需要注意。这里,依次从四个原始类型开始讲起。当然,这里面的很多知识,在计算机基础科目中,完全可以找到 类型的转换 彼此兼容的类型之间,可以相互转换,兼容类型的大小比较则根据其内存空间判断 自动隐式 转换:无须声明,例如 int 类型变量接收 byte 类型变量 ...
分类:
其他好文 时间:
2021-06-15 18:43:15
阅读次数:
0
在策略模式(Strategy Pattern)中,一个类的行为或其算法可以在运行时更改。这种类型的设计模式属于行为型模式。 public interface Strategy { public int operate(int num1, int num2); } public class AddOp ...
分类:
其他好文 时间:
2021-06-15 18:41:21
阅读次数:
0
class Program { public static long flgVal = 0; static void Main(string[] args) { int n = 100; Task.Run(() => DaMi(n)); Task.Run(() => LaoShu(n)); Cons ...
分类:
编程语言 时间:
2021-06-15 18:31:41
阅读次数:
0
8 种基本数据类型 Java 中有 8 种基本数据类型分为三大类。 字符型 char 布尔型 boolean 数值型 1.整型:byte、short、int、long 2.浮点型:float、double String 不是基本数据类型,是引用类型。 整型中 byte、short、int、long ...
分类:
编程语言 时间:
2021-06-15 18:30:02
阅读次数:
0
用python做一些关于数据处理的操作,于是就产生问题:python有什么“奇淫技巧”可以帮助我快速处理数据呢,今天来讲python实战技巧之将列表中整型的数据转换成字符型数据 ...
分类:
编程语言 时间:
2021-06-15 18:24:31
阅读次数:
0
基础环境 Windows 10系统 Anaconda3 Python3.9(Anaconda带) 步骤 下载文件包: https://zh.d2l.ai/d2l-zh-1.1.zip 解压后,修改 enviroment.yml ,添加 - pip 在树根 修改到清华镜像,并刷新。教程在:https: ...
分类:
其他好文 时间:
2021-06-15 18:23:34
阅读次数:
0
有些人安装的linux的系统默认防火墙不是iptables,而是firewall,那就得使用以下方式关闭防火墙了。 >>>关闭防火墙 systemctl stop firewalld.service #停止firewallsystemctl disable firewalld.service #禁止 ...
分类:
其他好文 时间:
2021-06-15 18:12:55
阅读次数:
0
二分寻找边界 public class Solution extends VersionControl { public int firstBadVersion(int n) { int i = 1; int j = n; while (i<=j) { int mid = i + ((j-i)>>1 ...
分类:
其他好文 时间:
2021-06-15 18:12:30
阅读次数:
0