python开发中的三目运算

来源:互联网 发布:瘦小腿 知乎 编辑:程序博客网 时间:2024/05/22 00:31
def foo(arg):    return arg if arg else None
原创粉丝点击