码迷,mamicode.com
首页 >  
搜索关键字:lines    ( 2570个结果
[Leetcode] Container with Most Water
Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpo...
分类:其他好文   时间:2015-09-30 14:31:09    阅读次数:128
浮点高低位赋值
浮点高低位赋值 typedef union uib { float av; byte bi[4]; } tv; ListBox1->Clear(); tv avalue; for (int i = 0; i Lines->Strings...
分类:其他好文   时间:2015-09-29 20:34:54    阅读次数:154
Python基础教程项目1:即使标记源码
util.py #?coding=utf-8 __author__?=?‘twocold‘ #?文本块生成器 def?lines(file): ????for?line?in?file:?yield?line ????yield?‘\n‘ def?blocks(file): ????block?=?[] ????...
分类:编程语言   时间:2015-09-25 13:26:51    阅读次数:174
zabbix 之 磁盘发现脚本
代码如下#!/usr/bin/python importos importjson data={} diskname_list=[] disk_list=[] command=‘‘‘iostat|awk‘{print$1}‘|grep^[vd]‘‘‘ lines=os.popen(command).readlines() forlineinlines: disk_name=line.strip(‘\n‘) disk_list.append(disk_name) fordisk_namein..
分类:其他好文   时间:2015-09-22 14:43:46    阅读次数:213
闪电似的
string x = string.Empty; string[] lines = System.IO.File.ReadAllLines(@"C:\Documents and Settings\Administrator\桌面\2.txt",Encoding.Default); if (line....
分类:其他好文   时间:2015-09-22 12:46:40    阅读次数:147
POJ 1258 Agri-Net
最小生成树问题。矩阵输入。这只是很伤心G++ 服从AC。。C++ 已经RE。唯一的问题,说的最多的 100 X 100 矩阵啊。Logically, they are N lines of N space-separated integers. Physically, they are limite...
分类:Web程序   时间:2015-09-19 16:42:51    阅读次数:151
Coding Interviews 3 Linked List
Linked list is a one of the most important topic in interviews. Because it uses dynamic memory and short lines can finish its implement. It is often u...
分类:其他好文   时间:2015-09-17 06:29:07    阅读次数:137
Container With Most Water 解答
QuestionGivennnon-negative integersa1,a2, ...,an, where each represents a point at coordinate (i,ai).nvertical lines are drawn such that the two endpo...
分类:其他好文   时间:2015-09-17 06:25:06    阅读次数:120
将MySQL数据导入MongoDB
1、进入Mysql,将数据导成CVSselect * from test_infointo outfile '/tmp/test.csv'fields terminated by ',' optionally enclosed by '"' escaped by '"'lines terminate...
分类:数据库   时间:2015-09-11 12:36:56    阅读次数:184
Container With Most Water
Givennnon-negative integersa1,a2, ...,an, where each represents a point at coordinate (i,ai).nvertical lines are drawn such that the two endpoints of ...
分类:其他好文   时间:2015-09-10 16:06:48    阅读次数:101
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!