Python3 字典 Get 方法
Python3 字典 Get 方法 #!/usr/bin/python3 dict = {'Name': 'Zara', 'Age': 27} print ("Value : %s" % dict.get('Age')) print ("Value : %s" % dict.get('Sex', "NA"))
Python3 字典 Get 方法
#!/usr/bin/python3 dict = {'Name': 'Zara', 'Age': 27} print ("Value : %s" % dict.get('Age')) print ("Value : %s" % dict.get('Sex', "NA"))
交流与评论