基于Python源码剖析第6章内容编写。实现了Python语言的的PyIntObject、PyStringObject和 PyDictObject对象,实现了加法操作和输出操作。
git clone [email protected]:wangxiaoxiao88/small-python.git下载源码make编译./small-python运行
>>> a = 1
>>> b = 2
>>> c = a+b
>>> print c
3
>>> a = "hi,"
>>> b = "wangxx"
>>> c = a+b
>>> print c
hi,wangxx