摘要: ayout: post title: Python3 集合(无序的set) author: "luowentaoaa" catalog: true tags: mathjax: true 集合(set)是一个无序的不重复元素序列。 可以使用大括号 { } 或者 set() 函数创建集合,注意:创建一 阅读全文
posted @ 2019-02-26 16:49 luowentao 阅读(2627) 评论(0) 推荐(0) 编辑
摘要: ayout: post title: Python3 字典(map) author: "luowentaoaa" catalog: true tags: mathjax: true 字典是另一种可变容器模型,且可存储任意类型对象。 字典的每个键值(key= value)对用冒号( : )分割,每个对 阅读全文
posted @ 2019-02-26 16:37 luowentao 阅读(4025) 评论(0) 推荐(0) 编辑
摘要: layout: post title: Python3 元组 author: "luowentaoaa" catalog: true tags: mathjax: true Python 的元组与列表类似,不同之处在于元组的元素不能修改。 元组使用小括号,列表使用方括号。 元组创建很简单,只需要在括 阅读全文
posted @ 2019-02-26 16:26 luowentao 阅读(111) 评论(0) 推荐(0) 编辑
摘要: layout: post title: Python5 列表 author: "luowentaoaa" catalog: true tags: mathjax: true Python列表脚本操作符 列表对 + 和 的操作符与字符串相似。+ 号用于组合列表, 号用于重复列表。 如下所示: | Py 阅读全文
posted @ 2019-02-26 16:21 luowentao 阅读(109) 评论(0) 推荐(0) 编辑
摘要: layout: post title: Python3 字符串 author: "luowentaoaa" catalog: true tags: mathjax: true Python 字符串更新 你可以截取字符串的一部分并与其他字段拼接,如下实例: Python转义字符 在需要在字符中使用特殊 阅读全文
posted @ 2019-02-26 16:00 luowentao 阅读(169) 评论(0) 推荐(0) 编辑
摘要: layout: post title: Python3 数字 author: "luowentaoaa" catalog: true tags: mathjax: true Python 数字类型转换 有时候,我们需要对数据内置的类型进行转换,数据类型的转换,你只需要将数据类型作为函数名即可。 in 阅读全文
posted @ 2019-02-26 15:40 luowentao 阅读(155) 评论(0) 推荐(0) 编辑
摘要: layout: post title: Python3 运算符 author: "luowentaoaa" catalog: true tags: mathjax: true Python算术运算符 | + | 加 两个对象相加 | a + b 输出结果 31 | | | | | | | 减 得到负 阅读全文
posted @ 2019-02-26 15:24 luowentao 阅读(225) 评论(0) 推荐(0) 编辑
摘要: layout: post title: Python3 基础数据类型 author: "luowentaoaa" catalog: true tags: mathjax: true 标准数据结构 数字 字符串 List Tuple(元组) Set(集合) Dictionary(字典) Python数 阅读全文
posted @ 2019-02-26 15:23 luowentao 阅读(151) 评论(0) 推荐(0) 编辑
摘要: layout: post title: Codeforces Round 253 (Div. 2) author: "luowentaoaa" catalog: true tags: mathjax: true codeforces 模拟栈 贪心 传送门 A. "Anton and Letters" 阅读全文
posted @ 2019-02-26 12:01 luowentao 阅读(447) 评论(0) 推荐(0) 编辑