1.add_to_index函数
def add_to_index(index,keyword,url):
for e in index:
if keyword == e[0]:
e[1].append(url)
return
index.append([keyword,[url]])
2. measuring networks:
(1): Lantency: time it takes to get from source ro destination.
milliseconds: 1000 millseconds = 1 second
(2): amount of information that can be transmitted per unit time. (bits per second)
Mbps: million bits per second.
(3) bit:
1 bit = smallset unit of information
(4)Hypertext Transfer Protocol(HTTP):超文本传输协议.