Python条件判断的缩写方法 return (1==1) ? "is easy" : "my god" //C#中的用法 其实,在Python中,是这样写的: print (1==2) and 'Fool' or 'Not bad' 输出结果: Not bad 查看更多关于Python条件判断的缩写方法的详细内容... 声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://www.haodehen.cn/did87186 更新时间:2022-10-19 阅读:55次