BC69 HTTP状态码
思路:
step1:创建字典;输入字符,打印对应单词;
代码如下:
while True:
try:
dic = {'200':'OK','202':'Accepted','400':'Bad Request','403':'Forbidden','404':'Not Found','500':'Internal Server Error','502':'Bad Gateway'}
n = input()
print(dic[n])
except:
break