proxy={'http': 'http://180.107.243.177:4257', 'https': 'http://180.107.243.177:4257'}
print(list(proxy.values())[0])
输出:http://180.107.243.177:4257
print(list(proxy.keys())[0])
输出:http
取字典的第一个值
最新推荐文章于 2024-07-27 12:20:46 发布
proxy={'http': 'http://180.107.243.177:4257', 'https': 'http://180.107.243.177:4257'}
print(list(proxy.values())[0])
输出:http://180.107.243.177:4257
print(list(proxy.keys())[0])
输出:http