上一页 1 ··· 6 7 8 9 10 11 12 下一页
摘要: For ( __str__ ),we going to see a example ...and find who is working for ...#!/usr/bin/pythonclass Person(object): def __init__(self,name,gende... 阅读全文
posted @ 2015-06-28 15:08 Landpack 阅读(393) 评论(0) 推荐(0) 编辑
摘要: Today,We will talk some about the argument and arguments ...#!/usr/bin/pythondef fun(*args): for value in args: print valueif __name__ == '_... 阅读全文
posted @ 2015-06-26 22:45 Landpack 阅读(512) 评论(0) 推荐(0) 编辑
摘要: Why we need the decorator in python ?Let's see a example:#!/usr/bin/pythondef fun_1(x): return x*2 def fun_2(x): return x*x*2if __name__ == '__m... 阅读全文
posted @ 2015-06-26 12:40 Landpack 阅读(229) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include #include #include #include #include #include #define errExit(msg) (perror(msg),(exit(EXIT_FAILURE)))#defi... 阅读全文
posted @ 2015-06-16 21:41 Landpack 阅读(225) 评论(0) 推荐(0) 编辑
摘要: Code:#!/usr/bin/python# -*- coding: UTF-8 -*-import reimport urllibimport timedef getHtml(url): """ This function just simply get all the data ... 阅读全文
posted @ 2015-06-05 20:45 Landpack 阅读(378) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 下一页