- 博客(2)
- 资源 (1)
- 收藏
- 关注
转载 Python字符串格式化--format()方法
1.简单运用字符串类型格式化采用format()方法,基本使用格式是: <模板字符串>.format(<逗号分隔的参数>)调用format()方法后会返回一个新的字符串,参数从0 开始编号。print("{}:计算机{}的CPU 占用率为{}%。".format("2016-12-31","PYTHON",10))output: '2016-12...
2018-10-31 15:57:03 1870
转载 numpy中flatten()函数用法
flatten是numpy.ndarray.flatten的一个函数,其官方文档是这样描述的:ndarray.flatten(order='C')Return a copy of the array collapsed into one dimension.Parameters: order : {‘C’, ‘F’, ‘A’, ‘K’}, optional ...
2018-10-31 15:49:39 29596
acl2016 best paper
2017-09-16
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人