CentOS 7镜像下载 官网下载链接:http://isoredirect.centos.org/centos/7/isos/x86_64/ step1: 进入下载页,选择阿里云站点进行下载 Actual Country 国内资源 Nearby Countries 周边国家资源 阿里云站点:htt ...
分类:
其他好文 时间:
2020-04-07 15:44:59
阅读次数:
189
索引 长度 for循环 user_info = {"name":3,"age":11,"country":"china"} print(user_info["country"]) print(len(user_info)) for k in user_info: print(k) china 3 n ...
分类:
其他好文 时间:
2020-04-05 15:44:21
阅读次数:
60
第11章 测试代码 11-1 城市和国家 :编写一个函数,它接受两个形参:一个城市名和一个国家名。这个函数返回一个格式为City, Country 的字符串,如Santiago, Chile 。将这个函数存储在一个名为city_functions.py的模块中。创建一个名为test_cities.p ...
分类:
编程语言 时间:
2020-03-29 19:39:39
阅读次数:
535
执行以下sql INSERT INTO [Country] VALUES (1, N'中国', N'China', N'CN'); 提示错误 仅当使用了列列表并且 IDENTITY_INSERT 为 ON 时,才能为表'xxxx'中的标识列指定显式值 解决方法: 在执行sql前后分别加:SET ID ...
分类:
其他好文 时间:
2020-03-23 00:06:03
阅读次数:
385
shell脚本在linux中应用广泛,之前一直选用python写脚本来进行一些文件操作,但是最后发现shell脚本非常方便,所以特意来学习下皮毛,便于提高自己效率 定义变量 1 country="China" 2 Number=100 3 4 ##注意 5 ##变量名和等号之间不能有空格 6 7 # ...
分类:
系统相关 时间:
2020-03-18 13:49:32
阅读次数:
61
1003 Emergency (25分) As an emergency rescue team leader of a city, you are given a special map of your country. The map shows several scattered cities ...
分类:
其他好文 时间:
2020-03-14 13:14:44
阅读次数:
85
1. 表相关的函数 Table wise function application 2. 行(列)相关的函数 Row or column wise function application 3. 聚合 Aggregation API 4. 同时变换 Transform API 5. 元素相关的函数 ...
分类:
其他好文 时间:
2020-03-13 17:11:23
阅读次数:
55
"原题链接" 首先如果不考虑数据范围,珂以想到一个贪心:每一次询问的$u,v$,设它们的最近公共祖先为$lca$,若当前的$u,v$有一条$u\rightarrow v$的路径,就直接按这个路径跑;否则尽量往$lca$上跑。如果跑不动了,而且也没有$u\rightarrow v$的路径,就不能到达。 ...
分类:
其他好文 时间:
2020-03-12 23:48:46
阅读次数:
116
[TOC] 特征工程 select_dtypes 可以选择指定类型的数据 处理分类特征 pd.get_dummies() values_counts() 统计每个特征的不相同的样本个数(之和) "datacamp的栗子" isin() 结果返回一个bool型的mask 接受一个列表,判断该列中元素是 ...
分类:
其他好文 时间:
2020-03-11 12:43:54
阅读次数:
52
Here is a famous story in Chinese history. "That was about 2300 years ago. General Tian Ji was a high official in the country Qi. He likes to play hor ...
分类:
其他好文 时间:
2020-03-09 20:48:05
阅读次数:
56