为什么这里用b = print(6) if a>3 else print(5)然后 print(b) 为 None而b = 6 if a>3 else 5再 print(b) 为 6 呢
收起
因为print函数没有返回值你上面是直接print了下面是先赋值给b再print别混用
报告相同问题?