b= {"a":1,"b":2} print(b.get("c",0)) print(b['c'] if 'c' in b else 0)
本文标题:Learning Python
本文链接:https://www.haomeiwen.com/subject/xqpejltx.html
网友评论