1 # -*- coding: utf-8 -*- 2 import socket 3 print "Creating socket" 4 s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 5 print "Done!\n" 6 7 ...
分类:
编程语言 时间:
2015-08-30 14:13:40
阅读次数:
113
#?-*-?coding:?utf-8?-*-
import?socket
print?"Creating?socket"
s?=?socket.socket(socket.AF_INET,?socket.SOCK_STREAM)?
print?"Done!\n"
print?‘Looking?up?port?number...‘
port?=?soc...
分类:
编程语言 时间:
2015-08-30 07:41:15
阅读次数:
131
1 int i = 0; 2 AcEdCommandIterator* iter = nullptr; 3 for (iter = acedRegCmds->iterator(); !iter->done(); iter->next()) 4 ...
分类:
其他好文 时间:
2015-08-29 13:56:38
阅读次数:
211
The Exchange of Items
Time Limit: 2 Seconds
Memory Limit: 65536 KB
Bob lives in an ancient village, where transactions are done by one item exchange with another. Bob is very clever an...
分类:
其他好文 时间:
2015-08-29 00:48:48
阅读次数:
192
1、Job完成状态监听: job.addJobChangeListener(new JobChangeAdapter() { @Override public void done(IJobChangeEvent event) { PlatformUI.getWorkbench().g...
分类:
其他好文 时间:
2015-08-27 18:26:11
阅读次数:
142
iOS:This is done using XCode project details (select the requiredorientation) Android:AndroidManifest.xml (android:screenOrientation=portrait)
分类:
移动开发 时间:
2015-08-27 10:43:37
阅读次数:
139
The Exchange of Items
Time Limit: 2 Seconds Memory Limit: 65536 KB
Bob lives in an ancient village, where transactions are done by one item exchange with another. Bob is very clever and he...
分类:
其他好文 时间:
2015-08-27 02:16:40
阅读次数:
225
function domReady(f){ if(domReady.done) return f(); if(domReady.timer){ domReady.ready.push(f); }else{ //为页面...
分类:
编程语言 时间:
2015-08-27 00:14:17
阅读次数:
283
A - Bridging Signals
Time Limit:2000MS Memory Limit:65536KB 64bit IO Format:%lld & %llu
SubmitStatusPracticeZOJ 1986
Description
‘Oh no, they’ve done it again’, cries the chief designer at...
分类:
其他好文 时间:
2015-08-26 22:35:37
阅读次数:
221
$.when 但是,这样写的话,done()方法会立即执行,起不到回调函数的作用。原因在于$.when()的参数只能是deferred对象,所以必须对wait()进行改写: $.when $.when ...
分类:
Web程序 时间:
2015-08-26 19:22:24
阅读次数:
162