Python 允许使用逗号作为分隔值返回多个结果。
在开发用C语言编写的CPython扩展时,是否有可能获得相同的结果?如何?
我正在开发一个 CPython 扩展来替换现有的 Python 代码来对性能进行一些测试,我更喜欢使用相同的界面来不更改现有的代码库。
我正在使用 Python 3.6。
c python cpython python-3.x
c ×1
cpython ×1
python ×1
python-3.x ×1