码迷,mamicode.com
首页 >  
搜索关键字:python objects all    ( 160304个结果)
json格式在ruby和rails中的注意事项
#虚拟网络拓扑的json数据 def topodata #@vnic = Vnic.all #flash.now[:notice] = 'Message sent!' #flash.now[:alert] = 'Message sent!' simple_json = { nodes:...
分类:Web程序   时间:2014-09-04 16:42:29    阅读次数:299
c语言socket编程
1. [代码][C/C++]代码 服务端://// main.m// server//// Created by mac on 13-4-15.// Copyright (c) 2013年 mac. All rights reserved.//#import #import #import #imp...
分类:编程语言   时间:2014-09-04 16:40:49    阅读次数:207
Download rtsp.c
1. [代码][C/C++]代码 /** Copyright (c) 2011, Jim Hollinger* All rights reserved.** Redistribution and use in source and binary forms, with or without* mod...
分类:其他好文   时间:2014-09-04 16:40:09    阅读次数:259
My First C
#includeint main() { printf("hello world \n"); return 0;}this is my first C program. And I will use c to realize all Category in this wiki page....
分类:其他好文   时间:2014-09-04 16:30:49    阅读次数:158
Eclipse下搭建Python环境
PyDev for Eclipse 是一个功能强大且易用的 Eclipse Python IDE 插件。本文将向读者介绍 PyDev 开源项目及其安装配置方法,并在此基础上详细介绍如何利用 PyDev 插件把 Eclipse 变为功能强大且易用的 Python IDE...
分类:编程语言   时间:2014-09-04 15:13:10    阅读次数:299
python网络爬虫学习笔记
python网络爬虫学习笔记 By 钟桓  9月 4 2014 更新日期:9月 4 2014 文章目录 1. 介绍:2. 从简单语句中开始:3. 传送数据给服务器4. HTTP头—描述数据的数据5. 异常 5.0.1. URLError5.0.2. HTTPError5.0.3. 处理异常5.0.4. info和geturl 6. Opener和Handler7. Ba...
分类:编程语言   时间:2014-09-04 15:04:19    阅读次数:357
Substring with Concatenation of All Words
You are given a string, S, and a list of words, L, that are all of the same length. Find all starting indices of substring(s) in S that is a concatena...
分类:其他好文   时间:2014-09-04 14:53:59    阅读次数:129
python 发邮件
简单实现用了2个模块,smtplib 主要的三个函数login ,sendmial ,closeSMTP.login(user,password)SMTP.sendmail(from_addr,to_addrs,msg[,mail_options,rcpt_options])https://docs...
分类:编程语言   时间:2014-09-04 14:50:09    阅读次数:188
python快速搭建WebServer
#!/usr/bin/pythonimport SimpleHTTPServerimport SocketServerimport osPORT = 7777WEBDIR = "/www/web/xxx_com/"class Handler(SimpleHTTPServer.SimpleHTTPRe...
分类:编程语言   时间:2014-09-04 14:48:19    阅读次数:160
Python-遍历-zip/map/filter/reduce
zip函数:同时循环多个同样长的函数,并返回一个包含了每个参数元组对应元素的元组。如果函数并不一致,则采用截取方式,使得返回的结果元组的长度为各个参数元组长度最小值。函式说明:zip(seq1[,seq2[,seq3[...]]])--->[(seq1(0),seq2(0),...),(seq1(1...
分类:编程语言   时间:2014-09-04 14:43:49    阅读次数:226
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!