1、计算1~100的数之和 for循环实现1~100的和 sum1 = 0 for i in range(1,101): sum1 = sum1 + i i += 1 print(f"1-100之间的和是:{sum1}") while实现1~100的和 sum1 = 0 i = 1 while Tr ...
分类:
编程语言 时间:
2020-06-08 15:06:40
阅读次数:
235
常用镜像源: 清华:https://pypi.tuna.tsinghua.edu.cn/simple阿里云:http://mirrors.aliyun.com/pypi/simple/中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/在安装包的时候执行命令 ...
分类:
编程语言 时间:
2020-06-08 14:43:37
阅读次数:
79
Foundation 的 <table> 元素样式为灰色斑马条纹且包含四个边框: 实例 <table> <thead> <tr> <th>Firstname</th> <th>Lastname</th> <th>Email</th> </tr> </thead> <tbody> <tr> <td>J ...
分类:
其他好文 时间:
2020-06-08 14:40:06
阅读次数:
57
UrlEncode: echo '你好中国' | tr -d '\n' | xxd -plain | sed 's/\(..\)/%\1/g' #echo '你好中国' |tr -d '\n' |od -An -tx1|tr ' ' % 输出:%e4%bd%a0%e5%a5%bd%e4%b8%ad% ...
分类:
Web程序 时间:
2020-06-08 13:03:55
阅读次数:
260
常用类 Arrays Arrays 类包含用于操作数组的各种方法(例如排序和搜索)。还包含一个静态工厂,允许将数组转为 List。 方法 描述 List asList(T... a) 返回由指定数组构造的 List void sort(Object[] a) 对数组进行排序 void fill(Ob ...
分类:
编程语言 时间:
2020-06-07 21:25:44
阅读次数:
107
一、目录结构: pip.conf文件: [global]index-url = https://mirrors.aliyun.com/pypi/simple/[install]trusted-host=mirrors.aliyun.com requirements.txt文件: Django==2. ...
分类:
其他好文 时间:
2020-06-07 19:54:55
阅读次数:
82
aspx页面:以下为引用的内容:aspx页面:<table cellspacing="0" cellpadding="0" width="100%" border="0"><tr><td height="25" width="30%" align="right">UName :</td><td he ...
分类:
Web程序 时间:
2020-06-07 14:39:25
阅读次数:
82
java.util 包提供了 Date 类来封装当前的日期和时间。 Date 类提供两个构造函数来实例化 Date 对象。 第一个构造函数使用当前日期和时间来初始化对象。 Date( ) 第二个构造函数接收一个参数,该参数是从1970年1月1日起的毫秒数。 Date(long millisec) 获 ...
分类:
编程语言 时间:
2020-06-07 11:09:52
阅读次数:
70
UOJ题目页面传送门 有一棵大小为$n$的树,根为$1$,节点$i$有一个权值$a_i$。支持$3$种$q$次操作: \(\texttt1\ x\ y\ v\):令所有在路径$x\to y$上的点的权值增加$v$,保证$v=\pm1$; \(\texttt2\ x\ y\):求路径$x\to y$上 ...
分类:
其他好文 时间:
2020-06-06 17:00:31
阅读次数:
53
#安装Chrome sudo yum localinstall google-chrome-stable_current_x86_64.rpm #更换pip源 -i https://pypi.tuna.tsinghua.edu.cn/simple/ #下载并安装Chromedriver http:/ ...
分类:
系统相关 时间:
2020-06-06 01:03:55
阅读次数:
109