python加密报错:Cython directive ‘language_level‘ not set, using 2 for now (Py2)

错误:

FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: G:\software\PyCharm 2018.3.3\test_ext\add.py
 tree = Parsing.p_module(s, pxd, full_module_name)

解决方案:在你需要加密的py文件顶部加上

# cython:language_level=3

即可

猜你喜欢

转载自blog.csdn.net/BigData_Mining/article/details/112992267
今日推荐