码迷,mamicode.com
首页 >  
搜索关键字:names    ( 11603个结果
C#冒泡排序
static void Main(string[] arr) { int[] names = {4,2,5,7,6,8,9,1,3,0};//Array.Sort(names)数组排序 for (int i = 0; i n...
分类:编程语言   时间:2015-05-06 22:39:00    阅读次数:128
C#数组反转
static void Main(string[] arr) { string[] names = { "老杨1", "老李2", "老王3", "老牛4", "老虎5", "老磁6" }; for (int i = 0; i < names...
分类:编程语言   时间:2015-05-06 22:26:02    阅读次数:148
python strip_tags 支持保留指定标签
#coding:utf-8import redef strip_tags(string, allowed_tags=''): if allowed_tags != '': # Get a list of all allowed tag names. allowed_tags = all...
分类:编程语言   时间:2015-05-06 17:03:44    阅读次数:143
nyoj 1205——简单问题——————【技巧题】
简单问题时间限制:1000ms | 内存限制:65535KB难度:2描述给你一个n*m的矩阵,其中的元素每一行从左到右按递增顺序排序,每一列从上到下按递增顺序排序,然后给你一些数x,问这些书在不在这个矩阵中,若在,输出其列号最大的元素坐标。输入多组测试样例,首先两个数n,m(0using names...
分类:其他好文   时间:2015-05-05 16:16:49    阅读次数:127
swift学习笔记5
五、集合数组1、泛型 Array2、简化[类型]var myAr:Arrayvar names:[String]myArr = Array()names = Array(count:10,repeatedValue:"heri")nums = Array(count:100,repeatedValu...
分类:编程语言   时间:2015-05-02 06:16:28    阅读次数:217
python 5 条件判断和循环
#!/usr/bin/env python # -*- coding: utf-8 -*- age = 3 if age >= 18: print 'adult' elif age >= 6: print 'teenager' else: print 'kid' print '----------------------' names = ['jie', 'bob', 'trcy'] f...
分类:编程语言   时间:2015-05-02 01:07:38    阅读次数:171
Real and Effective IDs
【Real and Effective IDs】 At the lowest level of the operating system, thekernel, users and groups aren't identified by names, but numbers. The kernel....
分类:其他好文   时间:2015-05-01 14:44:03    阅读次数:145
HDU-2602 Bone Collector
简单01背包状态转移方程 dp[j] = max{dp[j], dp[j - volume[i]] + value[i]}; 1 #include 2 #include 3 #include 4 #define mem(a) memset(a, 0, sizeof(a)) 5 using names...
分类:其他好文   时间:2015-05-01 13:17:56    阅读次数:154
热键虚拟码Virtual-Key Codes
http://msdn.microsoft.com/zh-cn/data/dd375731 Virtual-Key CodesVirtual-Key CodesThe following table shows the symbolic constant names, hexadecimal val...
分类:其他好文   时间:2015-04-30 21:43:51    阅读次数:411
R绘制3D饼图
二维饼图代码如下:#绘制2维饼图 x=read.delim("C:/Users/a/Desktop/sample.txt",header=FALSE)#读入文本数据 names(x)=c("word","count")#加表头 x=transform(x,pct=round(x$count/sum(x$count)*100))#数据框增加百分比列 y=x[order(x[,2],decreasing=T),]#排序 z=head(y,n=10..
分类:其他好文   时间:2015-04-30 20:29:36    阅读次数:197
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!