PyQt/其它/C和C++扩展/pydext/pydext/test.py
2018-10-27 23:47:59 +08:00

22 lines
364 B
Python

import sys
sys.path.insert(0,
'./build/lib.{0}-{1}.{2}'.format(sys.platform, sys.version_info.major, sys.version_info.minor))
import pydext
print(pydext)
print(dir(pydext))
print(pydext.__author__)
print(pydext.__mail__)
print(pydext.hello())
print(pydext.hello2('Irony'))
print(pydext.sum(1, 5))
# 结果变负数
print(pydext.sum(1, 5, minus=True))