LISP cons in python

后端 未结 6 2007
小鲜肉
小鲜肉 2021-01-12 07:10

Is there an equivalent of cons in Python? (any version above 2.5)

If so, is it built in? Or do I need easy_install do get a module?

6条回答
  •  春和景丽
    2021-01-12 07:18

    No. cons is an implementation detail of Lisp-like languages; it doesn't exist in any meaningful sense in Python.

提交回复
热议问题