码迷,mamicode.com
首页 >  
搜索关键字:python long string    ( 244880个结果
Command Network
Command Network Time Limit: 1000MSMemory Limit: 131072K Total Submissions: 11970Accepted: 3482 Description After a long lasting war on words, a war on...
分类:Web程序   时间:2014-05-10 05:27:44    阅读次数:475
Python 文件的输入与输出
1. 文本文件的读写主要通过open()所构建的文件对象来实现。我们打开一个文件,并使用一个对象来表示该文件 , f = open(d,r) 其中d是文件名,r是模式 "r" 文件只读,使用 f.write()会报错 "w" 用于写入,每次使用f.write()都会把上一次给覆盖掉 "r+" ...
分类:编程语言   时间:2014-05-10 05:25:47    阅读次数:305
[leetcode]Single Number @ Python
原题地址:http://www.cnblogs.com/x1957/p/3373994.html题意:Given an array of integers, every element appearstwiceexcept for one. Find that single one.要求:线性时间复...
分类:编程语言   时间:2014-05-10 05:22:27    阅读次数:408
java语言实现快速排序的两种方式
方法一:public class QuickSortExp1{ public static void main(String[] args){ int[] sortArray = new int[]{5,7,4,2,9,8,3,6}; System.out.println("before sor.....
分类:编程语言   时间:2014-05-10 05:08:46    阅读次数:496
一些代码实现
1.随机化的代码: #include #include srand((unsigned)time(NULL)); m=rand()%(r-l+1)+l;2.maparr;//arr[key] = value3.读入一整行字符串 getline(cin,s); cin.ignore();//忽视一行
分类:其他好文   时间:2014-05-10 05:08:20    阅读次数:294
java 语言实现选择排序
public class TestSelectSort{ public static void main(String[] args){ int[] sortArray = new int[]{5,7,4,2,9,8,3,6}; System.out.println("before sortin.....
分类:编程语言   时间:2014-05-10 05:04:52    阅读次数:322
算法-倒置字符串
/** * * @description * String utils * @author Czp * @version 1.0(2014-5-9) * */public class StringUtil { /** * @description: * ...
分类:其他好文   时间:2014-05-10 03:21:53    阅读次数:272
java 语言实现插入排序
public class InsertSort{ public static void main(String[] args){ int[] sortArray = new int[]{5,7,4,2,9,8,3,6}; System.out.println("before sorting ,t.....
分类:编程语言   时间:2014-05-10 03:13:15    阅读次数:342
n进制转为十进制
主程序代码 - 1 #include 2 #include 3 main() 4 { 5 long t1; 6 int i, n, t, t3; 7 char a[100]; 8 printf("please input a number string:\n");...
分类:其他好文   时间:2014-05-10 03:10:56    阅读次数:269
Python快速学习10: 循环的对象及设计 (生活的规律)
前言 系列文章:[传送门] 生活逐渐规律,按时睡觉。今天写博客,明天补时间看会书。慢慢的时间很珍惜 我很喜欢! 时钟就像个循环体,我们将它融入生活。正文 循环对象的并不是随着Python的诞生就存在的,但它的发展迅速,特别是Python 3x的时代,循环对象正在成为循...
分类:编程语言   时间:2014-05-10 03:04:04    阅读次数:361
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!