python
攀攀的跟屁虫
博客多为网上摘录,偶有原创。
展开
-
python 容器
参考:http://www.cnblogs.com/shawnChi/p/6484591.html容器有:list 列表:可重复,类型可不同,可变,无法进行hash。添加元素的方法有append()和extendtuple元组,用逗号隔开,用圆括号,类型也可不同,元素不能改变,可以hash。dict字典,{key:value},查询(通过键,查找值),set集合:去重转载 2017-09-13 10:44:12 · 183 阅读 · 0 评论 -
python3中的Antlr4(windows)
安装教程,我参考的是:https://www.aliyun.com/jiaocheng/525558.html为了方便大家看,内容是1. 到官网http://www.antlr.org/download.html 或者https://pypi.python.org/pypi/antlr4-python3-runtime/下载 antlr4-python3-runtime-4.7.macos...原创 2018-12-04 19:56:39 · 7975 阅读 · 4 评论