python 3.x - Python3 - what are the meanings of brackets after a method -


looking @ last line of code, ["message"][0] part confuses me , i'm not sure means. able explain meaning of it?

def do_post(self):     length = int(self.headers.get('content-length', 0))      data = self.rfile.read(length).decode()      message = parse_qs(data)["message"][0] 


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -