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

sql - Time in datatime field -

javascript - How to split the success output from an Ajax post? -

java - sharing object across different classes -