代码搜索:self
找到约 10,000 项符合「self」的源代码
代码结果 10,000
www.eeworm.com/read/465716/7052475
py simple2.py
#: c01:Simple2.py
from SimpleClass import Simple
class Simple2(Simple):
def __init__(self, str):
print "Inside Simple2 constructor"
# You must explicitly call
# the base-class c
www.eeworm.com/read/465716/7052481
py borgsingleton.py
#: c01:BorgSingleton.py
# Alex Martelli's 'Borg'
class Borg:
_shared_state = {}
def __init__(self):
self.__dict__ = self._shared_state
class Singleton(Borg):
def __init__(self, ar
www.eeworm.com/read/465716/7052482
py singletonmetaclass.py
#: c01:SingletonMetaClass.py
class SingletonMetaClass(type):
def __init__(cls,name,bases,dict):
super(SingletonMetaClass,cls)\
.__init__(name,bases,dict)
original_new = cls.__new_
www.eeworm.com/read/465716/7052504
py testsynchronization.py
#: util:TestSynchronization.py
from Synchronization import *
# To use for a method:
class C(Synchronization):
def __init__(self):
Synchronization.__init__(self)
self.data = 1
def
www.eeworm.com/read/378796/7069969
s keyboard.s
/* passed
* linux/kernel/keyboard.S
*
* (C) 1991 Linus Torvalds
*/
.586p
.model flat
/*
* Thanks to Alfred Leung for US keyboard patches
* Wolfgang Thiel for German keyboard patches
* Marc Corsini fo
www.eeworm.com/read/378796/7069970
h keyboard.h
#ifndef KEYBOARD_H
#define KEYBOARD_H
/*
* Thanks to Alfred Leung for US keyboard patches
* Wolfgang Thiel for German keyboard patches
* Marc Corsini for the French keyboard
*/
/*
* 感谢Alfred L
www.eeworm.com/read/103564/7127926
m controller.m
/*
* Controller.m: Controller Object of Gomoku.app
*
* Copyright (c) 2000 Nicola Pero
*
* Author: Nicola Pero
* Date: April, September 2000
*
* This program is f
www.eeworm.com/read/211145/7133385
pas unitlinearregress2.pas
unit UnitLinearRegress;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, Grids, ValEdit, ExtCtrls, StdCtrls, Menus, math, Clipbrd, jpeg,
www.eeworm.com/read/211145/7133399
pas unitlinearregress2.pas
unit UnitLinearRegress;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, Grids, ValEdit, ExtCtrls, StdCtrls, Menus, math, Clipbrd, jpeg,