码迷,mamicode.com
首页 >  
搜索关键字:closed    ( 3269个结果
StringBuilder String string.Concat 字符串拼接速度
StringBuilder String string.Concat 字符串拼接速度 ...
分类:其他好文   时间:2017-11-02 13:11:02    阅读次数:151
IP相关的方法
1、验证是否为IP地址 def isIP(ip, with_netmask=True): """ 判断IP的格式是否正确 :param ip: IP字符串 :param with_netmask: 后面是否携带 '/24'的掩码 :return: """ if with_netmask: p = r ...
分类:其他好文   时间:2017-11-02 11:28:15    阅读次数:237
函数(一)
1、函数的定义与调用 在python中通过def来定义函数,即 def 函数名():其中()内可以跟形参与实参,而函数的调用就是执行已经定义了的函数的命令。 1 #函数的定义 2 3 def sum(x,y): 4 #()内可以跟形参或实参 5 print('x={0}'.format(x)) 6 ...
分类:其他好文   时间:2017-11-02 11:14:39    阅读次数:174
HDU3555 Bomb 数位DP第一题
The counter-terrorists found a time bomb in the dust. But this time the terrorists improve on the time bomb. The number sequence of the time bomb coun ...
分类:其他好文   时间:2017-11-01 11:07:32    阅读次数:126
python 文件处理 -- 02 文件属性&标准输入输出&命令行参数&文件编码
1文件属性 file.fileno()--文件描述符 file.mode--文件当前打开的权限 file.encoding--文件编码格式(无输出表明为ASCII码) file.closed--文件是否被关闭 >>> f.fileno() 3 >>> f.mode 'r+' >>> f.encodi ...
分类:编程语言   时间:2017-11-01 00:06:00    阅读次数:270
HDU 4009 Transfer water
Transfer water Problem Description XiaoA lives in a village. Last year flood rained the village. So they decide to move the whole village to the mount ...
分类:其他好文   时间:2017-10-31 22:20:41    阅读次数:157
图像简单处理
public class ImageDistinguish { public string imgName { get; set;} private Bitmap bitmap { get; set; } /// <summary> /// 构造 /// </summary> /// <param ...
分类:其他好文   时间:2017-10-31 11:09:01    阅读次数:153
Leetcode:The Skyline Problem
题目大意:太复杂了,不太想翻译。对于一丛相互交错的方形建筑,可以由一个二维数组表示各自的轮廓。求从远处观望时看到的天际线。所谓的天际线就是某一段水平区域上的等高线,其下方或者是建筑,或者是地面。求从左到右的天际线序列,且相邻天际线高度不等(等高天际线合并)。需要输出的是每个天际线的左端点位置。 这道 ...
分类:其他好文   时间:2017-10-30 23:55:49    阅读次数:456
winfrom保存图片,将文件夹中图片放入listview,与撤回操作
之前那些操作完成对图片的修改之后,就是要保存图片了。 这里保存用到一个SaveFileDialog控件,可以获取用户选择的保存文件的路径。 /// <summary> /// 获取dataGridView注释作为图片名 /// </summary> /// <returns></returns> p ...
分类:Windows程序   时间:2017-10-30 14:32:36    阅读次数:138
清北刷题冲刺 10-30 a.m
星空 #include<iostream> #include<cstdio> using namespace std; int n,m; int main(){ freopen("star.in","r",stdin);freopen("star.out","w",stdout); while(1) ...
分类:其他好文   时间:2017-10-30 11:40:18    阅读次数:185
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!