会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
首页
新随笔
订阅
管理
上一页
1
···
194
195
196
197
198
199
200
201
202
···
337
下一页
2015年2月7日
python去掉行尾的换行符
摘要: python去掉行尾的换行符mystring.strip().replace(' ', '').replace('\n', '').replace('\t', '').replace('\r', '').strip()
阅读全文
posted @ 2015-02-07 20:24 emanlee
阅读(10324)
评论(0)
推荐(0)
2015年2月3日
Python根据内嵌的数字将字符串排序(sort by numbers embedded in strings)
摘要: import re re_digits = re.compile(r'(\d+)') def embedded_numbers(s): pieces = re_digits.split(s) # 切成数字与非数字 pieces[1::2] = map(int, pieces[1::2]) # 将...
阅读全文
posted @ 2015-02-03 09:17 emanlee
阅读(3528)
评论(0)
推荐(0)
2015年2月2日
mysql一次运行多个SQL文件
摘要: 在文件 batch.sql 中写下多个SQL文件source file1.SQLsource file2.SQLsource file3.SQL然后运行 source batch.sql
阅读全文
posted @ 2015-02-02 08:55 emanlee
阅读(5334)
评论(0)
推荐(0)
2015年2月1日
CentOS/Linux 卸载MATLAB
摘要: rm -rf /usr/local/MATLAB/R2012arm /usr/local/bin/matlab /usr/local/bin/mcc /usr/local/bin/mex /usr/local/bin/mbuild
阅读全文
posted @ 2015-02-01 21:30 emanlee
阅读(3823)
评论(0)
推荐(0)
linux 查看各目录(文件夹)下文件大小
摘要: # 显示总大小(/下全部文件占用大小)du -sh /* | sort -nr# 显示各文件夹的大小(当前文件夹下各文件夹的大小)du --max-depth=1
阅读全文
posted @ 2015-02-01 20:00 emanlee
阅读(2160)
评论(0)
推荐(0)
2015年1月28日
数据框排序 data.frame order
摘要: # sorting examples using the mtcars datasetattach(mtcars)# sort by mpgnewdata <- mtcars[order(mpg),]# sort by mpg and cylnewdata <- mtcars[order(mpg,
阅读全文
posted @ 2015-01-28 15:09 emanlee
阅读(3484)
评论(0)
推荐(0)
2015年1月23日
linux上不能显示Jfreechart的图片文件
摘要: 出现错误:Jan 23, 2015 4:19:21 PM org.apache.catalina.core.StandardWrapperValve invokeSEVERE: Servlet.service() for servlet [DisplayChart] in context with ...
阅读全文
posted @ 2015-01-23 17:20 emanlee
阅读(1140)
评论(0)
推荐(0)
2015年1月22日
HTML图片热区 map area 标签
摘要: 实例 定义和用法shape 属性与 coords 属性配合,可以规定区域的尺寸、形状和位置。详细解释:shape 属性用于定义图像映射中对鼠标敏感的区域的形状:圆形(circ 或 circle)多边形(poly 或 polygon)矩形(rect 或 rectangle)shape 属性的...
阅读全文
posted @ 2015-01-22 16:10 emanlee
阅读(1008)
评论(0)
推荐(0)
HTML文本/文字竖直方向/纵向显示
摘要: HTML vertical text (Safari, Firefox, Chrome, and Opera).vText { -moz-transform: rotate(-90deg) translate(0, 100%); -moz-transform-origin: 0% 100%;...
阅读全文
posted @ 2015-01-22 15:25 emanlee
阅读(4960)
评论(0)
推荐(1)
MYSQL数据类型转换
摘要: CONVERT(expr USING transcoding_name)CONVERT(expr,type)类型必须用下列的类型:可用的类型 二进制,同带binary前缀的效果 : BINARY 字符型,可带参数 : CHAR() 日期 : DATE 时间: TIME 日期时间型 : D...
阅读全文
posted @ 2015-01-22 11:28 emanlee
阅读(920)
评论(0)
推荐(0)
上一页
1
···
194
195
196
197
198
199
200
201
202
···
337
下一页