91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 87.83MB
    文件類(lèi)型: .zip
    金幣: 2
    下載: 1 次
    發(fā)布日期: 2022-08-16
  • 語(yǔ)言: C/C++
  • 標(biāo)簽: Devc++??Devcpp??C++??綠色版??

資源簡(jiǎn)介

該文件為Devcpp的綠色版。Devcpp是一款非常好用的C++ IDE,可以進(jìn)行拓展。此文件經(jīng)安裝后打包,可以直接解壓使用,無(wú)需再次安裝。

資源截圖

代碼片段和文件信息

#?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:
????

?屬性????????????大小?????日期????時(shí)間???名稱(chēng)
-----------?---------??----------?-----??----
?????文件??????432128??2015-03-26?02:17??Astyle\Astyle.exe
?????文件???????72531??2015-03-26?02:17??Astyle\doc\astyle.html
?????文件???????11365??2015-03-26?02:17??Astyle\doc\index.html
?????文件???????18758??2015-03-26?02:17??Astyle\doc\install.html
?????文件???????11801??2015-03-26?02:17??Astyle\doc\license.html
?????文件????????8381??2015-03-26?02:17??Astyle\doc\links.html
?????文件???????27422??2015-03-26?02:17??Astyle\doc\news.html
?????文件???????19191??2015-03-26?02:17??Astyle\doc\notes.html
?????文件????????6579??2015-03-26?02:17??Astyle\doc\scripts.html
?????文件????????1854??2015-03-26?02:17??Astyle\doc\styles.css
?????文件????????5928??2015-03-26?02:17??Astyle\doc\subversion.html
?????文件????????5541??2015-03-26?02:17??Astyle\doc\vsinstall.html
?????文件??????171008??2015-03-22?20:08??ConsolePauser.exe
?????文件???????18581??2015-03-26?02:17??COPYING.txt
?????文件?????2795008??2015-04-27?22:11??devcpp.exe
?????文件?????????695??2011-08-23?14:07??devcpp.exe.manifest
?????文件?????1579852??2015-04-27?22:11??devcpp.map
?????文件??????174592??2015-03-22?20:09??devcppPortable.exe
?????文件?????????464??2015-03-26?02:17??Help\content.css
?????文件????????2828??2015-03-26?02:17??Help\FAQ\Compiler.htm
?????文件?????????399??2015-03-26?02:17??Help\FAQ\Editor.htm
?????文件????????1436??2015-03-26?02:17??Help\FAQ\Environment.htm
?????文件????????1521??2015-03-26?02:17??Help\FAQ\Versions.htm
?????文件?????????951??2015-03-26?02:17??Help\index.htm
?????文件????????1624??2015-03-26?02:17??Help\Interface\Dialog?Windows\Compiler?Options\Directories.htm
?????文件?????????845??2015-03-26?02:17??Help\Interface\Dialog?Windows\Compiler?Options\General.htm
?????文件????????1860??2015-03-26?02:17??Help\Interface\Dialog?Windows\Compiler?Options\index.htm
?????文件????????1041??2015-03-26?02:17??Help\Interface\Dialog?Windows\Compiler?Options\Makefile.htm
?????文件????????1422??2015-03-26?02:17??Help\Interface\Dialog?Windows\Compiler?Options\Programs.htm
?????文件????????2810??2015-03-26?02:17??Help\Interface\Dialog?Windows\Compiler?Options\Settings.htm
?????文件?????????703??2015-03-26?02:17??Help\Interface\Dialog?Windows\Profile?Analysis\Call?Graph.htm
............此處省略5988個(gè)文件信息

評(píng)論

共有 條評(píng)論