源码 修改打印值

 

Python\ceval.c

#define NAME_ERROR_MSG \
    "name '%.200s' is not defined----XL"

[hdp@cmd testcpy]$ /usr/local/bin/python3.9
Python 3.9.0a1+ (default, Nov 21 2019, 11:38:36)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> print(d)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'd' is not defined----XL
>>>

  

修改 Python 源代码

https://blog.csdn.net/lanchunhui/article/details/51282484

 

posted @ 2019-11-11 17:51  papering  阅读(344)  评论(0)    收藏  举报