摘要: Python字符串格式化 (%占位操作符) 在许多编程语言中都包含有格式化字符串的功能,比如C和Fortran语言中的格式化输入输出。Python中内置有对字符串进行格式化的操作 %。 模板 格式化字符串时,Python使用一个字符串作为模板。模板中有格式符,这些格式符为真实值预留位置,并说明真实数 阅读全文
posted @ 2018-08-08 22:15 本本蜀黍 阅读(1855) 评论(0) 推荐(0) 编辑
摘要: from functools import reduce sentences = ['The Deep Learning textbook is a resource intended to help students and practitioners enter the field of machine learning in general and deep learning in par... 阅读全文
posted @ 2018-08-08 22:06 本本蜀黍 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 标记待查 老师博客 阅读全文
posted @ 2018-08-07 02:10 本本蜀黍 阅读(346) 评论(0) 推荐(0) 编辑
摘要: string.capitalize() 把字符串的第一个字符大写 string.center(width) 返回一个原字符串居中,并使用空格填充至长度 width 的新字符串 string.count(str, beg=0, end=len(string)) 返回 str 在 string 里面出现 阅读全文
posted @ 2018-08-05 18:28 本本蜀黍 阅读(421) 评论(0) 推荐(0) 编辑
摘要: 可以在这个网站中找到 http://www.runoob.com/python3/python3-string.html 些网站是设计语言中一些基础语法的中文说明书,对初学者非常有用 阅读全文
posted @ 2018-08-05 18:15 本本蜀黍 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 运算符 1、算数运算: 2、比较运算: 3、赋值运算: 4、逻辑运算: 5、成员运算: 其它详细 转载链接: http://www.cnblogs.com/wupeiqi/articles/5444685.html 1、算数运算: 2、比较运算: 3、赋值运算: 4、逻辑运算: 5、成员运算: 其它 阅读全文
posted @ 2018-08-05 16:04 本本蜀黍 阅读(139) 评论(0) 推荐(0) 编辑