编程语言[总排行] [月排行] [周排行] [日排行]
url编码分两种, 一种是unicode, 另一种是gb2312, 今天遇到的一个网站是要将字符编码按照gb2312来编码,用来得到一个先填写blanks后再返回页面的数据,废话少说,需要做的就是先查看你的python的编码是啥,默认是ascii,import sysprint sys.getd.....
分类:编程语言 时间:2014-06-08 20:17:26 阅读:342
原题地址:https://oj.leetcode.com/problems/add-binary/题意:Given two binary strings, return their sum (also a binary string).For example,a ="11"b ="1"Return"...
分类:编程语言 时间:2014-06-08 20:28:04 阅读:300
因为一些特性复杂,很多时候也用不到一些特性,所以忘记了,算是随笔,也当作一个临时查找的手册。没有什么顺序,很杂。1.构造函数通过函数重载的机制可以有多个(不同的构造函数,参数个数,或者参数类型不同。),但是析构函数只能有一个。当没有在代码中写明构造或析构函数时,编译器会自动生成缺省的构造或析构函数。...
分类:编程语言 时间:2014-06-08 20:27:27 阅读:372
状态模式:当一个对象的内在状态改变时允许改变其行为,这个对象看起来像是改变了其类。简单描述:一个Context类(存有一个抽象状态State引用),调用状态类的方法。State的具体类方法中会判断Context类的状态(如时间),满足一个状态则执行相应动作,否则把Context的State引用指向下...
分类:编程语言 时间:2014-06-08 20:53:11 阅读:469
原题地址:https://oj.leetcode.com/problems/sort-colors/题意:Given an array withnobjects colored red, white or blue, sort them so that objects of the same col...
分类:编程语言 时间:2014-06-08 20:56:32 阅读:394
原题地址:https://oj.leetcode.com/problems/search-for-a-range/题意:Given a sorted array of integers, find the starting and ending position of a given target ...
分类:编程语言 时间:2014-06-08 21:03:21 阅读:297
原题地址:https://oj.leetcode.com/problems/sqrtx/题意:Implementint sqrt(int x).Compute and return the square root ofx.解题思路:实现开平方函数。这里要注意的一点是返回的时一个整数。通过这一点我们可...
分类:编程语言 时间:2014-06-08 21:04:38 阅读:329
下列文章,转载请亲注明链接出处,谢谢!链接地址:http://www.cnblogs.com/ttcc/tag/JavaScript%20%E5%9F%BA%E7%A1%80%E7%9F%A5%E8%AF%86%20%E6%80%BB%E7%BB%93/1. Javascript基础---语法(待....
分类:编程语言 时间:2014-06-08 21:07:15 阅读:286
原创地址:http://www.cnblogs.com/Alandre/(泥沙砖瓦浆木匠),需要转载的,保留下! ThanksTalk is cheap. Show me the code.Written In The Font 图能抵过一切,喜欢咖啡喜欢java.Con...
分类:编程语言 时间:2014-06-08 21:11:54 阅读:310
近期整理下很久前写的程序,这里就把它放在博文中了,有些比较简单,但是很有学习价值。下面就是自己很久前实现的复数重载代码,这里没有考虑特殊情况,像除法中,分母不为零情况。#include /*#include #include#include#include#include*/using namesp...
分类:编程语言 时间:2014-06-08 21:20:09 阅读:316
144746447474474845345
上一页453443下一页
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!