当前位置: 代码迷 >> 综合 >> python3运行py的文件时会出现missing parentheses is call to 'print'
  详细解决方案

python3运行py的文件时会出现missing parentheses is call to 'print'

热度:77   发布时间:2023-12-15 01:32:22.0

#python3 的print需要括号

如下正确的函数调用写法

def printme(str):print(str)return # # 调用函数
printme("我要调用用户自定义函数!")



  相关解决方案