首页题目详情

Python2 中的 print 语句与 Python3 中的 print 函数有何区别?

题目配图
A.Python2 中的 print 是函数,Python3 中的 print 是语句
B.Python2 中的 print 是语句,Python3 中的 print 是函数
C.两者没有区别
D.Python3 中的 print 不支持多个参数

优质解答

答案

B

解析

在 Python2 中 print 是一个语句,而在 Python3 中 print 成为一个函数。

查看答案和解析

支付 ¥0.1 即可查看此题答案和详细解析

低至 ¥0.1 起

Python程序设计单选题中等AI生成