Why is print not a function in python?

前端 未结 6 2007
情深已故
情深已故 2021-02-13 13:21

Why is print a keyword in python and not a function?

6条回答
  •  心在旅途
    2021-02-13 13:48

    Because Guido has decided that he made a mistake. :)

    It has since been corrected: try Python 3, which dedicates a section of its release notes to describing the change to a function.

    For the whole background, see PEP 3105 and the several links provided in its References section!

提交回复
热议问题