def max(a,b): if a>b: return a else: return b
a=4 b=5 print(max(a,b)
建议代码截图 运行你代码是没问的
代码看着是没问题的,估计是IDE的问题。