标签:nbsp 河北 用户交互 三级 级联 input NPU print 三级联动
dict = {
"河北": {
"石家庄":{"晋州市","平山县","元氏"},
"邯郸": {"永年","涉县","磁县"},
},
"河南": {
"郑州": {"新郑","荥阳","新密"},
"周口": {"项城","淮阳","太康"},
}
}
inp1 = input("用户输入省份:")
for i in dict[inp1]:
print(i)
标签:nbsp 河北 用户交互 三级 级联 input NPU print 三级联动
原文地址:https://www.cnblogs.com/wssaried/p/9862688.html