摘要:
For ( __str__ ),we going to see a example ...and find who is working for ...#!/usr/bin/pythonclass Person(object): def __init__(self,name,gende... 阅读全文
摘要:
Today,We will talk some about the argument and arguments ...#!/usr/bin/pythondef fun(*args): for value in args: print valueif __name__ == '_... 阅读全文
摘要:
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... 阅读全文
摘要:
#include #include #include #include #include #include #include #include #include #include #define errExit(msg) (perror(msg),(exit(EXIT_FAILURE)))#defi... 阅读全文
摘要:
Code:#!/usr/bin/python# -*- coding: UTF-8 -*-import reimport urllibimport timedef getHtml(url): """ This function just simply get all the data ... 阅读全文