SYMBOL INDEX (256 symbols across 26 files) FILE: MyShow/GetData_zhihu.py function get_all_topics (line 10) | def get_all_topics(): function get_topic_data (line 15) | def get_topic_data(topic_id, topic_name): FILE: MyShow/MyShow.py class UserForm (line 30) | class UserForm(FlaskForm): function temp (line 37) | def temp(): function index (line 42) | def index(): function zhihu_get_topics_list (line 64) | def zhihu_get_topics_list(): function zhihu_get_topics_data (line 82) | def zhihu_get_topics_data(): function page_not_found (line 91) | def page_not_found(excep): FILE: python_aiohttp.py function aiohttp_test01 (line 12) | async def aiohttp_test01(url): FILE: python_base.py class Dict (line 284) | class Dict(dict): method __missing__ (line 285) | def __missing__(self, key): function func (line 419) | def func(): class Employee (line 424) | class Employee(object): function myfunc (line 476) | def myfunc(): # 函数定义 function add (line 712) | def add(x,y):return x + y class C1 (line 807) | class C1(C2, C3): method __init__ (line 809) | def __init__(self, name): # 函数属性:构造函数 method __del__ (line 811) | def __del__(self): # 函数属性:析构函数 method __init__ (line 880) | def __init__(self, name): method __str__ (line 882) | def __str__(self): class FirstClass (line 816) | class FirstClass(object): method test (line 817) | def test(self, string): method test (line 819) | def test(self): # 此时类中只有一个test函数 即后者test(self) 它覆盖掉前者带... class Manager (line 823) | class Manager(Person): method giveRaise (line 824) | def giveRaise(self, percent, bonus = .10): class method (line 841) | class.method(instance, arg...) function action (line 848) | def action(self): class Super (line 852) | class Super(metaclass = ABCMeta): method action (line 854) | def action(self): pass class A (line 858) | class A(B): class wrapper (line 866) | class wrapper(object): method __init__ (line 867) | def __init__(self, object): method __getattr (line 869) | def __getattr(self, attrname): class C1 (line 879) | class C1(object): method __init__ (line 809) | def __init__(self, name): # 函数属性:构造函数 method __del__ (line 811) | def __del__(self): # 函数属性:析构函数 method __init__ (line 880) | def __init__(self, name): method __str__ (line 882) | def __str__(self): class Spam (line 890) | class Spam(object): method doit (line 891) | def doit(self, message): class Student (line 915) | class Student(object): method __getattr__ (line 1061) | def __getattr__(self, attr): # 定义当获取类的属性时的返回值 method __call__ (line 1070) | def __call__(self): # 也可以带参数 function set_age (line 919) | def set_age(self, age): # 定义一个函数作为实例方法 class A (line 930) | class A(B, C): class FooParent (line 937) | class FooParent(object): method __init__ (line 938) | def __init__(self, a): method bar (line 941) | def bar(self, message): class FooChild (line 943) | class FooChild(FooParent): method __init__ (line 944) | def __init__(self, a): method bar (line 947) | def bar(self, message): class Methods (line 954) | class Methods(object): method imeth (line 955) | def imeth(self, x): print(self, x) # 实例方法:传入的是实例和数据,操作的是实例的属性 method smeth (line 956) | def smeth(x): print(x) # 静态方法:只传入数据 不传入实例,操作的是类的属性而不是... method cmeth (line 957) | def cmeth(cls, x): print(cls, x) # 类方法:传入的是类对象和数据 function smeth (line 970) | def smeth(x): print(x) function smeth (line 972) | def smeth(x): print(x) function cmeth (line 976) | def cmeth(cls, x): print(x) function cmeth (line 978) | def cmeth(cls, x): print(x) function decorator (line 982) | def decorator(aClass):..... class Student (line 990) | class Student(object): method __getattr__ (line 1061) | def __getattr__(self, attr): # 定义当获取类的属性时的返回值 method __call__ (line 1070) | def __call__(self): # 也可以带参数 class C (line 998) | class C(object): method __init__ (line 999) | def __init__(self): method getx (line 1002) | def getx(self): method setx (line 1004) | def setx(self, value): method delx (line 1006) | def delx(self): function x (line 1017) | def x(self): function x (line 1020) | def x(self, value): function x (line 1023) | def x(self): class Fib (line 1034) | class Fib(object): method __init__ (line 1035) | def __init__(self): method __iter__ (line 1037) | def __iter__(self): method next (line 1039) | def next(self): class Indexer (line 1047) | class Indexer(object): method __init__ (line 1048) | def __init__(self): method __getitem__ (line 1050) | def __getitem__(self, n): # 定义getitem方法 method __setitem__ (line 1053) | def __setitem__(self, key, value): # 定义setitem方法 class Student (line 1060) | class Student(object): method __getattr__ (line 1061) | def __getattr__(self, attr): # 定义当获取类的属性时的返回值 method __call__ (line 1070) | def __call__(self): # 也可以带参数 class Student (line 1069) | class Student(object): method __getattr__ (line 1061) | def __getattr__(self, attr): # 定义当获取类的属性时的返回值 method __call__ (line 1070) | def __call__(self): # 也可以带参数 function __len__ (line 1076) | def __len__(self): class MyBad (line 1136) | class MyBad(Exception): method __str__ (line 1137) | def __str__(self): class FormatError (line 1145) | class FormatError(Exception): method __init__ (line 1146) | def __init__(self, line ,file): method __init__ (line 1156) | def __init__(self, line ,file): method logger (line 1159) | def logger(self): class FormatError (line 1154) | class FormatError(Exception): method __init__ (line 1146) | def __init__(self, line ,file): method __init__ (line 1156) | def __init__(self, line ,file): method logger (line 1159) | def logger(self): class MyDict (line 1307) | class MyDict(dict): method __setitem__ (line 1308) | def __setitem__(self, key, value): # 该函数不做任何改动 这里只是为了输出 method __getitem__ (line 1311) | def __getitem__(self, item): # 主要技巧在该函数 FILE: python_celery.py function add (line 19) | def add(x, y): FILE: python_context.py class MyOpen (line 11) | class MyOpen(object): method __init__ (line 13) | def __init__(self, file_name): method __enter__ (line 19) | def __enter__(self): method __exit__ (line 25) | def __exit__(self, exc_type, exc_val, exc_tb): function open_func (line 42) | def open_func(file_name): class MyOpen2 (line 62) | class MyOpen2(object): method __init__ (line 64) | def __init__(self, file_name): method close (line 69) | def close(self): FILE: python_coroutine.py function consumer (line 13) | def consumer(): # 定义消费者,由于有yeild关键词,此消费者为一个生成器 function produce (line 22) | def produce(c): # 定义生产者,此时的 c 为一个生成器 function hello (line 40) | def hello(index): # 通过装饰器asyncio.coroutine定义协程 function hello1 (line 52) | async def hello1(index): # 通过关键字async定义协程 function get (line 64) | async def get(url): FILE: python_decorator.py function logging (line 11) | def logging(func): function test01 (line 23) | def test01(a, b): function test02 (line 30) | def test02(a, b, c=1): function params_chack (line 36) | def params_chack(*types, **kwtypes): function test03 (line 51) | def test03(a, b): function test04 (line 58) | def test04(a, b, c): class ATest (line 64) | class ATest(object): method test (line 66) | def test(self, a, b): function test05 (line 74) | def test05(a, b, c): class Decorator (line 80) | class Decorator(object): method __init__ (line 82) | def __init__(self, func): method __call__ (line 86) | def __call__(self, *args, **kwargs): function test06 (line 95) | def test06(a, b, c): class ParamCheck (line 101) | class ParamCheck(object): method __init__ (line 103) | def __init__(self, *types, **kwtypes): method __call__ (line 108) | def __call__(self, func): function test07 (line 121) | def test07(a, b, c): function funccache (line 127) | def funccache(func): function test08 (line 140) | def test08(a, b, c): class Person (line 146) | class Person(object): method __init__ (line 148) | def __init__(self): method get_name (line 152) | def get_name(self): method set_name (line 156) | def set_name(self, name): class People (line 165) | class People(object): method __init__ (line 167) | def __init__(self): method name (line 173) | def name(self): method name (line 177) | def name(self, name): method age (line 182) | def age(self): method age (line 186) | def age(self, age): class A (line 193) | class A(object): method func (line 196) | def func(self): method static_func (line 201) | def static_func(): method class_func (line 206) | def class_func(cls): FILE: python_lda.py class BiDictionary (line 17) | class BiDictionary(object): method __init__ (line 22) | def __init__(self): method __len__ (line 30) | def __len__(self): method __str__ (line 36) | def __str__(self): method clear (line 43) | def clear(self): method add_key_value (line 51) | def add_key_value(self, key, value): method remove_key_value (line 59) | def remove_key_value(self, key, value): method get_value (line 68) | def get_value(self, key, default=None): method get_key (line 74) | def get_key(self, value, default=None): method contains_key (line 80) | def contains_key(self, key): method contains_value (line 86) | def contains_value(self, value): method keys (line 92) | def keys(self): method values (line 98) | def values(self): method items (line 104) | def items(self): class CorpusSet (line 111) | class CorpusSet(object): method __init__ (line 116) | def __init__(self): method init_corpus_with_file (line 135) | def init_corpus_with_file(self, file_name): method init_corpus_with_articles (line 143) | def init_corpus_with_articles(self, article_list): method save_wordmap (line 203) | def save_wordmap(self, file_name): method load_wordmap (line 211) | def load_wordmap(self, file_name): class LdaBase (line 223) | class LdaBase(CorpusSet): method __init__ (line 232) | def __init__(self): method init_statistics_document (line 276) | def init_statistics_document(self): method init_statistics_word (line 293) | def init_statistics_word(self): method init_statistics (line 310) | def init_statistics(self): method sum_alpha_beta (line 318) | def sum_alpha_beta(self): method calculate_theta (line 326) | def calculate_theta(self): method calculate_phi (line 334) | def calculate_phi(self): method calculate_perplexity (line 343) | def calculate_perplexity(self): method multinomial_sample (line 360) | def multinomial_sample(pro_list): method gibbs_sampling (line 380) | def gibbs_sampling(self, is_calculate_preplexity): method save_parameter (line 456) | def save_parameter(self, file_name): method load_parameter (line 467) | def load_parameter(self, file_name): method save_zvalue (line 480) | def save_zvalue(self, file_name): method load_zvalue (line 490) | def load_zvalue(self, file_name): method save_twords (line 508) | def save_twords(self, file_name): method load_twords (line 521) | def load_twords(self, file_name): method save_tag (line 536) | def save_tag(self, file_name): method save_model (line 546) | def save_model(self): method load_model (line 562) | def load_model(self): class LdaModel (line 575) | class LdaModel(LdaBase): method init_train_model (line 580) | def init_train_model(self, dir_path, model_name, current_iter, iters_n... method begin_gibbs_sampling_train (line 635) | def begin_gibbs_sampling_train(self, is_calculate_preplexity=True): method init_inference_model (line 649) | def init_inference_model(self, train_model): method inference_data (line 668) | def inference_data(self, article_list, iters_num=100, repeat_num=3): FILE: python_magic_methods.py class People (line 9) | class People(object): method __init__ (line 11) | def __init__(self, name, age): method __str__ (line 16) | def __str__(self): method __lt__ (line 19) | def __lt__(self, other): class MyDict (line 26) | class MyDict(dict): method __setitem__ (line 28) | def __setitem__(self, key, value): # 该函数不做任何改动 这里只是为了输出 method __getitem__ (line 33) | def __getitem__(self, item): # 主要技巧在该函数 FILE: python_markov_chain.py function makePairs (line 11) | def makePairs(arr): function generate (line 20) | def generate(cfd, word='the', num=500): FILE: python_metaclass.py class Foo (line 8) | class Foo(object): method hello (line 9) | def hello(self): function init (line 24) | def init(self, name): function hello (line 29) | def hello(self): class Author (line 44) | class Author(type): method __new__ (line 45) | def __new__(mcs, name, bases, dict): class Foo (line 51) | class Foo(object, metaclass=Author): method hello (line 9) | def hello(self): FILE: python_redis.py function public_test (line 17) | def public_test(): function subscribe_test (line 26) | def subscribe_test(_type=0): FILE: python_requests.py function print_url (line 212) | def print_url(resp): FILE: python_restful_api.py function verify_token (line 28) | def verify_token(token): class User (line 41) | class User(BaseModel): function get_json (line 55) | def get_json(user): class Todo (line 78) | class Todo(Resource): method put (line 82) | def put(self, user_id): method get (line 104) | def get(self, user_id): method delete (line 117) | def delete(self, user_id): class TodoList (line 126) | class TodoList(Resource): method get (line 130) | def get(self): method post (line 148) | def post(self): FILE: python_schedule.py function print_hello (line 14) | def print_hello(): FILE: python_socket.py function server_func (line 11) | def server_func(port): function client_func (line 50) | def client_func(port): FILE: python_splash.py function test_1 (line 15) | def test_1(url): function test_2 (line 36) | def test_2(url): FILE: python_sqlalchemy.py class User (line 45) | class User(BaseModel): class Role (line 68) | class Role(BaseModel): FILE: python_thread_multiprocess.py function task_io (line 17) | def task_io(task_id): function task_cpu (line 31) | def task_cpu(task_id): function init_queue (line 46) | def init_queue(): FILE: python_version36.py function test (line 23) | def test(a: List[int], b: int) -> int: class Starship (line 30) | class Starship(object): function ticker (line 43) | async def ticker(delay, to): FILE: python_visual.py function simple_plot (line 19) | def simple_plot(): function simple_advanced_plot (line 55) | def simple_advanced_plot(): function subplot_plot (line 99) | def subplot_plot(): function bar_plot (line 123) | def bar_plot(): function barh_plot (line 161) | def barh_plot(): function bar_advanced_plot (line 199) | def bar_advanced_plot(): function table_plot (line 238) | def table_plot(): function histograms_plot (line 273) | def histograms_plot(): function pie_plot (line 300) | def pie_plot(): function scatter_plot (line 327) | def scatter_plot(): function fill_plot (line 352) | def fill_plot(): function radar_plot (line 376) | def radar_plot(): function three_dimension_scatter (line 408) | def three_dimension_scatter(): function three_dimension_line (line 445) | def three_dimension_line(): function three_dimension_bar (line 473) | def three_dimension_bar(): FILE: python_visual_animation.py function simple_plot (line 18) | def simple_plot(): function scatter_plot (line 70) | def scatter_plot(): function three_dimension_scatter (line 110) | def three_dimension_scatter(): FILE: python_wechat.py function update_my_infos (line 35) | def update_my_infos(): class Message (line 47) | class Message(object): method __init__ (line 51) | def __init__(self, msg): function process_message_group (line 104) | def process_message_group(msg): function process_message_revoke (line 126) | def process_message_revoke(msg): function text_reply (line 169) | def text_reply(msg): FILE: python_weibo.py class WeiBoLogin (line 18) | class WeiBoLogin(object): method __init__ (line 23) | def __init__(self): method login (line 37) | def login(self, user_name, pass_word): method get_username (line 107) | def get_username(self): method get_json_data (line 115) | def get_json_data(self, su_value): method get_password (line 138) | def get_password(self, servertime, nonce, pubkey): FILE: wxPython/hello_world.py class HelloFrame (line 10) | class HelloFrame(wx.Frame): method __init__ (line 15) | def __init__(self, *args, **kw): method make_menubar (line 36) | def make_menubar(self): method OnExit (line 74) | def OnExit(self, event): method OnHello (line 78) | def OnHello(self, event): method OnAbout (line 82) | def OnAbout(self, event):