Skip to Content
Python 技術手冊 第三版
book

Python 技術手冊 第三版

by lex Martelli, Anna Martelli Ravenscroft, Steve Holden
January 2018
Intermediate to advanced
856 pages
17h 17m
Chinese
GoTop Information, Inc.
Content preview from Python 技術手冊 第三版
760
|
24 章 擴充與內嵌標準型的 Python
Cython
Cython
http://cython.org/
)語言,Greg Ewing pyrex
http://www.cosc.
canterbury.ac.nz/greg.ewing/python/Pyrex/
)的一個「友善分支(friendly
fork)」,通常是為 Python 撰寫擴充功能最便利的方式。Cython 幾乎是
Python 的一個完整子集(它們宣稱的目標是最終成為 Python 的一個完整的
超集合
1
,為變數加上選擇性的類似 C 的型別:你可以自動將 Cython 程式
(帶有延伸檔名
.pyx
)編譯為機器碼(藉由產生 C 程式碼的中間步驟)
產生 Python 可匯入的擴充功能。)請參閱前面的 URL 來查看深入、詳盡、
優良的說明文件,涵蓋 Cython 程式設計的所有細節,在本節中,我們只涵
蓋一些基礎,來幫助你開始使用 Cython
Cython 實作了幾乎所有的 Python,但有 Cython 作者無意修補的四個細微
差異(
http://docs.cython.org/en/latest/src/userguide/limitations.html
),以及在
目前 Cython 中被視為臭蟲的幾個小差異,而作者也計畫盡快修補它們(在
此列出它們並沒有意義,因為很有可能你讀到這裡時它們已經被修正了)。
所以,Cython 確實是 Python 的一個龐大的子集。更重要的是,Cython
Python ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

利用 Python 进行数据分析(原书第2版)

利用 Python 进行数据分析(原书第2版)

Wes McKinney

Publisher Resources

ISBN: 9789864766819