上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 54 下一页
摘要: from urllib.request import urlopenhtml = urlopen("http://www.baidu.com")print(html.read())注意: 以上代码基于Python 3.x 阅读全文
posted @ 2015-08-17 11:02 Master HaKu 阅读(349) 评论(0) 推荐(0)
摘要: 1. TCP ServerThe server’s job is to set up an endpoint for clients to connect to and passively wait for connections. The typical TCP server goes throu... 阅读全文
posted @ 2015-08-10 11:11 Master HaKu 阅读(3195) 评论(0) 推荐(0)
摘要: 1. SpreadsheetCell.h#pragma once#include class SpreadsheetCell{public: void setValue(double inValue); double getValue() const; void setString... 阅读全文
posted @ 2015-07-12 11:41 Master HaKu 阅读(878) 评论(0) 推荐(0)
摘要: 插入排序C++代码:template void SortUtil::insertionSort(vector& data){ int j = 0; for (int i = 1; i 0 && data[j - 1] > key) { data[j]... 阅读全文
posted @ 2015-06-30 18:54 Master HaKu 阅读(190) 评论(0) 推荐(0)
摘要: 1. Range-Based for Loopsfor ( decl : coll ) {statement}eg:for ( int i : { 2, 3, 5, 7, 9, 13, 17, 19 } ) { std::cout vec;...for ( auto& elem : vec ... 阅读全文
posted @ 2015-06-29 17:02 Master HaKu 阅读(425) 评论(0) 推荐(0)
摘要: 1. Uniform Initializationint values[] { 1, 2, 3 };std::vector v { 2, 3, 5, 7, 11, 13, 17 };std::vector cities {"Berlin", "New York", "London", "Brauns... 阅读全文
posted @ 2015-06-29 16:48 Master HaKu 阅读(350) 评论(0) 推荐(0)
摘要: 1. 选中模拟器,在屏幕上方的菜单中找到Hardware->Keyboard2. 直接快捷键shift+command+k 阅读全文
posted @ 2015-06-28 15:53 Master HaKu 阅读(1948) 评论(0) 推荐(0)
摘要: 大家知道,在iOS中所有的视图都继承自UIView。UIView处理所有的触摸事件和画图。事实上,UIView所有的渲染和动画是托管给另一个类来负责的,它就是CALayer。但是,需要记住的是,CALayer不负责responder chain,也就是说,无法对事件作出响应。每个UIView都有一个... 阅读全文
posted @ 2015-06-08 17:28 Master HaKu 阅读(191) 评论(0) 推荐(0)
摘要: ALT+双击图层 阅读全文
posted @ 2015-05-21 17:16 Master HaKu 阅读(229) 评论(0) 推荐(0)
摘要: 代码如下:Size visibleSize = Director::getInstance()->getVisibleSize(); /* create two sprites which have overlapped parts */ Sprite* sp1 = Sprite::cr... 阅读全文
posted @ 2015-05-19 20:17 Master HaKu 阅读(1859) 评论(0) 推荐(0)
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 54 下一页