05 2018 档案

摘要:tf.constant Creates a constant tensor. The resulting tensor is populated with values of type dtype, as specified by arguments value and (optionally) s 阅读全文
posted @ 2018-05-30 23:37 suonikeyinsu 阅读(594) 评论(0) 推荐(0)
摘要:Class Variable A variable maintains state in the graph across calls to run(). You add a variable to the graph by constructing an instance of the class 阅读全文
posted @ 2018-05-29 22:59 suonikeyinsu 阅读(147) 评论(0) 推荐(0)
摘要:tf.placeholder Inserts a placeholder for a tensor that will be always fed. Important: This tensor will produce an error if evaluated. Its value must b 阅读全文
posted @ 2018-05-29 21:50 suonikeyinsu 阅读(240) 评论(0) 推荐(0)
摘要:list comprehension Using a list comprehension: [x for x in iterable] to create list instance [expresion for x in iterabel ] 列表推导式的核心在expression. 列表推推导 阅读全文
posted @ 2018-05-29 20:51 suonikeyinsu 阅读(137) 评论(0) 推荐(0)
摘要:class numpy.random.RandomState(seed=None) RandomState 是一个基于Mersenne Twister算法的伪随机数生成类 RandomState 包含很多生成 概率分布的伪随机数 的方法。 如果指定seed值,那么每次生成的随机数都是一样的。即对于某 阅读全文
posted @ 2018-05-29 13:16 suonikeyinsu 阅读(245) 评论(0) 推荐(0)
摘要:The sqlite3 module supports two kinds of placeholders: question marks (qmark style) and named placeholders (named style). execute(sql[, parameters]) s 阅读全文
posted @ 2018-05-27 16:56 suonikeyinsu 阅读(8248) 评论(0) 推荐(0)
摘要:本片文章主要是对pickle官网的阅读记录。 The pickle module implements binary protocols for serializing and de-serializing a Python object structure. “Pickling” is the p 阅读全文
posted @ 2018-05-26 13:23 suonikeyinsu 阅读(983) 评论(0) 推荐(0)
摘要:xlrd.open_workbook(filename=None, logfile=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='UTF-8'>, verbosity=0, use_mmap=1, file_contents=None,  阅读全文
posted @ 2018-05-26 12:27 suonikeyinsu 阅读(346) 评论(0) 推荐(0)
摘要:在《matplotlib极坐标系应用之雷达图》 中,我们提出了这个问题“图例中每种成员的颜色是怎样和极坐标相应的成员的颜色相对应的呢”,那么接下来我们说说legend的一般使用和设置。 调用legend()一般有三种方式: 方式1. 自动检测,直接调用legend(); 在plot()时就指定图例l 阅读全文
posted @ 2018-05-24 13:35 suonikeyinsu 阅读(526) 评论(0) 推荐(0)
摘要:Q1:图例中每种成员的颜色是怎样和极坐标相应的成员的颜色相对应的呢?且听下回分解 阅读全文
posted @ 2018-05-24 00:12 suonikeyinsu 阅读(1722) 评论(0) 推荐(0)
摘要:出现场景:在安装sl时,需要使用更新内核版本,那么下载新的内核时,/boot分区没空间了,然后 安装程序报错。 1. 查看/boot分区的空间使用情况 2. 查看/boot下的内容 从中可以看出,有几个旧版本的内核,可以将其删除。 为了保证删除干净,最好不要简单的将/boot想对应旧版本内核的相关文 阅读全文
posted @ 2018-05-23 23:57 suonikeyinsu 阅读(432) 评论(0) 推荐(0)
摘要:matplotlib之极坐标系的极径网格线(rgrids)的显示刻度 matplotlib.pyplot.rgrids(*args, **kwargs) Get or set the radial gridlines on a polar plot. get or set 径向网格线 call si 阅读全文
posted @ 2018-05-23 14:08 suonikeyinsu 阅读(1572) 评论(0) 推荐(0)
摘要:极坐标系的极角网格线(thetagrids)的显示刻度 matplotlib.pyplot.thetagrids(*args, **kwargs) Get or set the theta locations of the gridlines in a polar plot. get or set 阅读全文
posted @ 2018-05-23 13:54 suonikeyinsu 阅读(4279) 评论(0) 推荐(0)
摘要:set_theta_zero_location(loc, offset=0.0) Sets the location of theta’s zero. (Calls set_theta_offset with the correct value in radians under the hood.) 阅读全文
posted @ 2018-05-23 13:14 suonikeyinsu 阅读(1078) 评论(0) 推荐(0)
摘要:ax1 是顺时针方向的图 ax2 是逆时针方向的图 set_theta_direction(direction) Set the direction in which theta increases. clockwise, -1: Theta increases in the clockwise d 阅读全文
posted @ 2018-05-23 12:59 suonikeyinsu 阅读(1226) 评论(0) 推荐(0)
摘要:从上图可以看出,默认极坐标系的 极角显示刻度为(0, 360,45),极径显示刻度为(0,1.0,0.2),0度的方向为“E”,默认极坐标的方向是逆时针方向。 那么, 1. 怎么设置极坐标系的方向? 2. 怎么设置极坐标(ρ, 0)的起始位置? 3. 怎样设置极坐标系 的极角网格线(thetagri 阅读全文
posted @ 2018-05-23 12:19 suonikeyinsu 阅读(1110) 评论(0) 推荐(0)
摘要:1. vocabulary once adv. 一次,曾经 They cocktailed once every week. He once lived in shanghai. twice adv 两次 she does for us twice a week I mop the kitchen 阅读全文
posted @ 2018-05-20 08:25 suonikeyinsu 阅读(190) 评论(0) 推荐(0)
摘要:该实例主要是针对 requests 和 BeautifulSoup的应用。 阅读全文
posted @ 2018-05-15 23:06 suonikeyinsu 阅读(205) 评论(0) 推荐(0)
摘要:1. vocabulay 1.1 scary adj.令人恐怖的 This is a scary thing. you can construct some extremely scary scenarios for yourself without too much trouble. 1.2 su 阅读全文
posted @ 2018-05-09 22:42 suonikeyinsu 阅读(168) 评论(0) 推荐(0)
摘要:linux 环境下怎样对不同的python环境进行 方便的切换呢?update-alternatives工具能够非常方便的帮我们完成这个任务。而windows环境下可通过anaconda来完成. 1.通过update-alternatives工具来管理python版本的切换 2.update-alt 阅读全文
posted @ 2018-05-05 16:49 suonikeyinsu 阅读(339) 评论(0) 推荐(0)
摘要:dictionary是一个有元组组成的list,变量名有点歧义,这里是想表达 由元组组成的list哈。 之所以用dictionary是因为模拟的将字典转换成list。 将list进行排序,而根据lambda函数指定的元素进行排序。 例子中是 根据 每个元组的第0个元素,也即是字典的key进行排序; 阅读全文
posted @ 2018-05-03 21:05 suonikeyinsu 阅读(219) 评论(0) 推荐(0)