def test():
a = ""
return a or "hehe" #如果a为真,输出a; 否则输出右边(比如0, "", [], ())
#return a or None
print(test())
https://www.cnblogs.com/zealousness/p/8749152.html
7python ruturn中的and与or.
新战场:https://blog.csdn.net/Stephen___Qin
def test():
a = ""
return a or "hehe" #如果a为真,输出a; 否则输出右边(比如0, "", [], ())
#return a or None
print(test())
https://www.cnblogs.com/zealousness/p/8749152.html