python字符串格式化有两种方式:百分号方式和format方式。 百分号方式相对来说比较老,而format方式则比较先进。 1、百分号方式 %[(name)][flags][width].[precision]typecode (name) 可选,用于选择指定的key flags 可选,可供选择的 ...
分类:
编程语言 时间:
2017-02-22 19:33:50
阅读次数:
314
作者:leona 原文链接:http://www.cnblogs.com/leona-d/p/6307570.html 版权声明:本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文链接 ...
分类:
其他好文 时间:
2017-01-19 18:08:28
阅读次数:
101
df['cum_sum'] = df.val1.cumsum() df['cum_perc'] = 100*df.cum_sum/df.val1.sum() ...
分类:
其他好文 时间:
2017-01-10 11:40:45
阅读次数:
191
SELECT index_type_desc,alloc_unit_type_desc,avg_fragmentation_in_percent,fragment_count,avg_fragment_size_in_pages,page_count,record_count,avg_page_sp ...
分类:
其他好文 时间:
2017-01-04 18:57:58
阅读次数:
249
上面是解决问题的代码。 不知道怎么在代码前面插入话了。 写在后面吧 版本 3.11.1 问题描述: Android播放视频的时候,后台,再切回来,导致 视频无法播放。黑屏。 解决之后: 后台回来正常记忆播放。没有问题。 ...
分类:
移动开发 时间:
2017-01-03 18:17:39
阅读次数:
364
iOS中访问HTTP资源需要对URL进行Encode才能正确访问。 OC中有方法: - (NSString *)stringByAddingPercentEscapesUsingEncoding:(NSStringEncoding)enc; 例如: NSString *url=@"http://un ...
分类:
Web程序 时间:
2016-12-30 19:11:18
阅读次数:
193
/*/* * Unobstrusive swf upload widget using jQuery. *example : $(':file.uo_widget_form_input_file_swf_upload').uoWidgetFormInputFileSwfUpload({}); * *... ...
分类:
Web程序 时间:
2016-12-29 23:02:08
阅读次数:
248
Android 新引入的布局,百分比布局,Percent 布局 主要分为两种:PercentFrameLayout he PercentRelativeLayout 布局 通过 support 库引入, 在 module 的 gradle 中加入 compile:com.android.suppor ...
分类:
移动开发 时间:
2016-12-25 11:34:26
阅读次数:
237
-》完整的select语句及执行顺序(必须记住) 5...select 5.2->distinct 7...top n [percent] 5.1->列名 聚合函数(1.2->列名或表达式) 1...1.1->from 表名 2...where 条件 3...group by ... 4...hav ...
分类:
数据库 时间:
2016-12-18 18:18:58
阅读次数:
159