|  | 
 
| 
x
马上注册,结交更多好友,享用更多功能^_^您需要 登录 才可以下载或查看,没有账号?立即注册  a = ["Mike","Jack","John"]
 b = ["85","88","90"]
 math = dict(zip(a,b))
 print("math:",math)
 
 art = dict(Mike = "90",Jack = "85",John = "86")
 print("art :",art)
 print("Bob:",dict.get(Bob["These is no Bob"]))
 
 [{
 "resource": "/C:/Users/JSY/Desktop/py/test.py",
 "owner": "_generated_diagnostic_collection_name_#2",
 "code": {
 "value": "reportUndefinedVariable",
 "target": {
 "$mid": 1,
 "external": "https://github.com/microsoft/pylance-release/blob/main/DIAGNOSTIC_SEVERITY_RULES.md#diagnostic-severity-rules",
 "path": "/microsoft/pylance-release/blob/main/DIAGNOSTIC_SEVERITY_RULES.md",
 "scheme": "https",
 "authority": "github.com",
 "fragment": "diagnostic-severity-rules"
 }
 },
 "severity": 4,
 "message": "\"Bob\" is not defined",
 "source": "Pylance",
 "startLineNumber": 9,
 "startColumn": 23,
 "endLineNumber": 9,
 "endColumn": 26
 }]
 | 
 |