![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python基础篇
guoyang111
这个作者很懒,什么都没留下…
展开
-
matplotlib
pyplot学习(plt)原创 2017-07-01 10:58:01 · 349 阅读 · 0 评论 -
python基础内容
# -*- coding: utf-8 -*- 加在第一行 对python list来说,append()方法总是将新元素加在列表末尾,而insert(index, ) 就可以放在任意(index)位置了 list与tuple完全一致,只是tuple元素不可变,即没有append, insert和pop方法,另外tuple用()而不是[]表示 遍历dictionary时,用f原创 2017-07-04 15:16:30 · 232 阅读 · 0 评论 -
python argparse简介
首先要import argparse 一般用在if __name__ == '__main__'中: parser = argparse.ArgumentParser() #打开解释器 parser.add_argument('--data_dir', type=str, default='', help='') 这里--或-引导的是选项,而default是默认值原创 2017-07-09 11:10:47 · 212 阅读 · 0 评论