How Python Runs Programs
Process: source code -> compiled byte code -> PVM (Python Virtual Machine) runs byte code
Performance loss: compilation + extra work in running virtual machine
Implementation variations: CPython (the standard); Jython; IronPython; Stackless Python; PyPy (with JIT compiler).
Optimization: Cython (Python/C hybrid)
Frozen binary: PyInstaller
programs > modules > statements > expressions > objects
Core Data TypesNumber (int, float, complex, decimal, fraction, boolean)
String
List
Dictionary
Tuple
File
Set
None
Program units: function, module, class
TypingVariable is created during value assignment. Variable itself has no type information, it simply points to an object and the object can be any type. Python"s typing is:
Dynamic: type is determined automatically at runtime, not declared
Strong: every object has two header fields: type designator; reference counter.
Objects are garbage-collected, programmer doesn"t have to free them.
文章版權(quán)歸作者所有,未經(jīng)允許請勿轉(zhuǎn)載,若此文章存在違規(guī)行為,您可以聯(lián)系管理員刪除。
轉(zhuǎn)載請注明本文地址:http://systransis.cn/yun/43157.html
摘要:做一個搬運(yùn)工,希望自己能努力學(xué)習(xí),也希望大神們的東西能讓更多的人看到不斷更新更新日志新增了網(wǎng)絡(luò)安全分類,整理了排版布局新增了的鏈接,將一些雜七雜八的東西弄到了一篇新文章上了,叫做積累與雜貨鋪一以及相關(guān)教程的規(guī)范與相關(guān)中文學(xué)習(xí)大本營中文文檔簡 做一個搬運(yùn)工,希望自己能努力學(xué)習(xí),也希望大神們的東西能讓更多的人看到 不斷更新 更新日志:2017.10.13 新增了網(wǎng)絡(luò)安全分類,整理了排版布局...
摘要:做一個搬運(yùn)工,希望自己能努力學(xué)習(xí),也希望大神們的東西能讓更多的人看到不斷更新更新日志新增了網(wǎng)絡(luò)安全分類,整理了排版布局新增了的鏈接,將一些雜七雜八的東西弄到了一篇新文章上了,叫做積累與雜貨鋪一以及相關(guān)教程的規(guī)范與相關(guān)中文學(xué)習(xí)大本營中文文檔簡 做一個搬運(yùn)工,希望自己能努力學(xué)習(xí),也希望大神們的東西能讓更多的人看到 不斷更新 更新日志:2017.10.13 新增了網(wǎng)絡(luò)安全分類,整理了排版布局...
摘要:創(chuàng)建一個新對象將構(gòu)造函數(shù)的作用域賦給新對象因此就指向了這個新對象執(zhí)行構(gòu)造函數(shù)中的代碼為這個新對象添加屬性返回新對象。 本章內(nèi)容 理解對象屬性 理解并創(chuàng)建對象 理解繼承 ECMA-262把對象定義為:無序?qū)傩缘募?,其屬性可以包含基本值、對象或者函?shù) 理解對象 創(chuàng)建對象 創(chuàng)建自定義對象的最簡單方式就是創(chuàng)建一個Object的實例,再為它添加屬性和方法。 var person = new...
閱讀 2786·2021-11-23 09:51
閱讀 3544·2021-10-08 10:17
閱讀 1277·2021-10-08 10:05
閱讀 1329·2021-09-28 09:36
閱讀 1851·2021-09-13 10:30
閱讀 2192·2021-08-17 10:12
閱讀 1686·2019-08-30 15:54
閱讀 2014·2019-08-30 15:53