-
大小: 91.61MB文件類型: .zip金幣: 2下載: 2 次發布日期: 2022-02-15
- 語言: C/C++
- 標簽: codeblocks??免安裝??免配置??
資源簡介
codeblocks免安裝免配置環境綠色版,自帶編譯環境,直接運行就可以寫c、c++代碼
代碼片段和文件信息
#?Copyright?2007?Google?Inc.?All?Rights?Reserved.
#?Licensed?to?PSF?under?a?Contributor?Agreement.
“““Abstract?base?Classes?(ABCs)?according?to?PEP?3119.“““
import?types
from?_weakrefset?import?WeakSet
#?Instance?of?old-style?class
class?_C:?pass
_InstanceType?=?type(_C())
def?abstractmethod(funcobj):
????“““A?decorator?indicating?abstract?methods.
????Requires?that?the?metaclass?is?ABCmeta?or?derived?from?it.??A
????class?that?has?a?metaclass?derived?from?ABCmeta?cannot?be
????instantiated?unless?all?of?its?abstract?methods?are?overridden.
????The?abstract?methods?can?be?called?using?any?of?the?normal
????‘super‘?call?mechanisms.
????Usage:
????????class?C:
????????????__metaclass__?=?ABCmeta
????????????@abstractmethod
????????????def?my_abstract_method(self?...):
????????????????...
????“““
????funcobj.__isabstractmethod__?=?True
????return?funcobj
class?abstractproperty(property):
????“““A?decorator?indicating?abstract?properties.
????Requires?that?the?metaclass?is?ABCmeta?or?derived?from?it.??A
????class?that?has?a?metaclass?derived?from?ABCmeta?cannot?be
????instantiated?unless?all?of?its?abstract?properties?are?overridden.
????The?abstract?properties?can?be?called?using?any?of?the?normal
????‘super‘?call?mechanisms.
????Usage:
????????class?C:
????????????__metaclass__?=?ABCmeta
????????????@abstractproperty
????????????def?my_abstract_property(self):
????????????????...
????This?defines?a?read-only?property;?you?can?also?define?a?read-write
????abstract?property?using?the?‘long‘?form?of?property?declaration:
????????class?C:
????????????__metaclass__?=?ABCmeta
????????????def?getx(self):?...
????????????def?setx(self?value):?...
????????????x?=?abstractproperty(getx?setx)
????“““
????__isabstractmethod__?=?True
class?ABCmeta(type):
????“““metaclass?for?defining?Abstract?base?Classes?(ABCs).
????Use?this?metaclass?to?create?an?ABC.??An?ABC?can?be?subclassed
????directly?and?then?acts?as?a?mix-in?class.??You?can?also?register
????unrelated?concrete?classes?(even?built-in?classes)?and?unrelated
????ABCs?as?‘virtual?subclasses‘?--?these?and?their?descendants?will
????be?considered?subclasses?of?the?registering?ABC?by?the?built-in
????issubclass()?function?but?the?registering?ABC?won‘t?show?up?in
????their?MRO?(Method?Resolution?Order)?nor?will?method
????implementations?defined?by?the?registering?ABC?be?callable?(not
????even?via?super()).
????“““
????#?A?global?counter?that?is?incremented?each?time?a?class?is
????#?registered?as?a?virtual?subclass?of?anything.??It?forces?the
????#?negative?cache?to?be?cleared?before?its?next?use.
????_abc_invalidation_counter?=?0
????def?__new__(mcls?name?bases?namespace):
????????cls?=?super(ABCmeta?mcls).__new__(mcls?name?bases?namespace)
????????#?Compute?set?of?abstract?method?names
????????abstracts?=?set(name
?????????????????????for?name?value?in?namespace.items()
?????????????????????if?getattr(value?“__isabstractmethod__“?False))
????????for?base?in?bases:
????
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-09-29?17:27??codeblocks免安裝免配置\
?????目錄???????????0??2018-09-29?17:27??codeblocks免安裝免配置\$PLUGINSDIR\
?????文件????????5632??2018-09-29?17:27??codeblocks免安裝免配置\$PLUGINSDIR\AdvSplash.dll
?????文件???????11264??2018-09-29?17:27??codeblocks免安裝免配置\$PLUGINSDIR\System.dll
?????文件???????25818??2017-12-25?15:34??codeblocks免安裝免配置\$PLUGINSDIR\modern-header.bmp
?????文件???????26494??2003-09-24?02:34??codeblocks免安裝免配置\$PLUGINSDIR\modern-wizard.bmp
?????文件????????9728??2018-09-29?17:27??codeblocks免安裝免配置\$PLUGINSDIR\nsDialogs.dll
?????文件??????564422??2017-12-28?18:19??codeblocks免安裝免配置\$PLUGINSDIR\spltmp.bmp
?????文件??????203264??2017-12-29?15:41??codeblocks免安裝免配置\Addr2LineUI.exe
?????文件???????58368??2017-12-29?15:41??codeblocks免安裝免配置\CbLauncher.exe
?????目錄???????????0??2018-09-29?17:27??codeblocks免安裝免配置\MinGW\
?????文件????????1230??2010-05-18?03:54??codeblocks免安裝免配置\MinGW\COPYING-expat.txt
?????文件????????1061??2013-09-29?03:43??codeblocks免安裝免配置\MinGW\COPYING.ISL.txt
?????文件????????1109??2013-09-21?10:55??codeblocks免安裝免配置\MinGW\COPYING.MinGW.txt
?????文件????????3397??2010-05-31?03:44??codeblocks免安裝免配置\MinGW\COPYING.RUNTIME-gcc-tdm.txt
?????文件????????2940??2013-09-17?07:08??codeblocks免安裝免配置\MinGW\COPYING.winpthreads.txt
?????文件???????35821??2010-05-31?03:45??codeblocks免安裝免配置\MinGW\COPYING3-gcc-tdm.txt
?????文件???????35821??2010-05-31?03:45??codeblocks免安裝免配置\MinGW\COPYING3-gdb-tdm.txt
?????文件????????7804??2010-05-31?03:45??codeblocks免安裝免配置\MinGW\COPYING3.LIB-gcc-tdm.txt
?????文件???????40092??2012-04-11?13:31??codeblocks免安裝免配置\MinGW\LICENSE-python.txt
?????文件???????18265??2015-06-27?10:06??codeblocks免安裝免配置\MinGW\README-gcc-tdm.txt
?????文件????????5503??2015-06-22?12:13??codeblocks免安裝免配置\MinGW\README-gdb32-tdm.txt
?????目錄???????????0??2018-09-29?17:27??codeblocks免安裝免配置\MinGW\bin\
?????文件??????666126??2014-01-10?06:49??codeblocks免安裝免配置\MinGW\bin\addr2line.exe
?????文件??????692238??2014-01-10?06:49??codeblocks免安裝免配置\MinGW\bin\ar.exe
?????文件?????1285646??2014-01-10?06:49??codeblocks免安裝免配置\MinGW\bin\as.exe
?????文件??????805376??2015-06-27?13:11??codeblocks免安裝免配置\MinGW\bin\c++.exe
?????文件??????665102??2014-01-10?06:49??codeblocks免安裝免配置\MinGW\bin\c++filt.exe
?????文件??????803840??2015-06-27?13:11??codeblocks免安裝免配置\MinGW\bin\cpp.exe
?????文件??????722958??2014-01-10?06:49??codeblocks免安裝免配置\MinGW\bin\dlltool.exe
?????文件???????56334??2014-01-10?06:49??codeblocks免安裝免配置\MinGW\bin\dllwrap.exe
............此處省略4323個文件信息
評論
共有 條評論