python
pqpq777
这个作者很懒,什么都没留下…
展开
-
Python 转义序列
\\ Backslash () 反斜杠 \' Single-quote (') 单引号 \" Double-quote (") 双引号 \a ASCII bell (BEL) 响铃符 \b ASCII backspace (BS) 退格符 \f ASCII formfeed (FF) 进纸符 \n ASCII l原创 2017-11-20 12:11:01 · 219 阅读 · 0 评论 -
有关于python学习过程中实用的网站
python 学习过程中使用到的网站原创 2017-09-24 13:04:53 · 258 阅读 · 0 评论 -
python 格式化字符
%s 字符串 (采用str()的显示) %r 字符串 (采用repr()的显示) %c 单个字符 %b 二进制整数 %d 十进制整数 %i 十进制整数 %o 八进制整数 %x 十六进制整数 %e 指数 (基底写为e) %E 指数 (基底写为E) %f 浮点数 %F原创 2017-11-15 11:02:06 · 133 阅读 · 0 评论 -
MNIST学习笔记
英文教程:http://deeplearning.net/tutorial/logreg.html#logreg主要代码:n_train_batches = train_set_x.get_value(borrow=True).shape[0] // batch_size n_valid_batches = valid_set_x.get_value(borrow=True).shape[0] /...原创 2018-03-16 23:05:30 · 255 阅读 · 0 评论 -
pandas
1、pandas的dataframe筛选出某一列等于具体值的数据时,用.isin() Eg:weather = weather[ ( weather['code'].isin([320100,320200]) ) ] 2、将一列数据分为两列 如暴雨/大雨 -->暴雨 大雨 data.insert(1,'pm',data['weather']) data['am'] = data['w...原创 2018-08-09 19:29:01 · 173 阅读 · 0 评论