Update p10_wrap_existing_c_code_with_cython.rst
改一个错别字
This commit is contained in:
@@ -178,7 +178,7 @@
|
|||||||
def gcd(unsigned int x, unsigned int y):
|
def gcd(unsigned int x, unsigned int y):
|
||||||
return csample.gcd(x,y)
|
return csample.gcd(x,y)
|
||||||
|
|
||||||
对于简单的函数,你并不需要去做太多的时。
|
对于简单的函数,你并不需要去做太多的事。
|
||||||
Cython会生成包装代码来正确的转换参数和返回值。
|
Cython会生成包装代码来正确的转换参数和返回值。
|
||||||
绑定到属性上的C数据类型是可选的。不过,如果你包含了它们,你可以另外做一些错误检查。
|
绑定到属性上的C数据类型是可选的。不过,如果你包含了它们,你可以另外做一些错误检查。
|
||||||
例如,如果有人使用负数来调用这个函数,会抛出一个异常:
|
例如,如果有人使用负数来调用这个函数,会抛出一个异常:
|
||||||
|
|||||||
Reference in New Issue
Block a user