but I stack at the as_dict .
if I didn't us as_dict , I get the problem as same as the book say on page 284:
192.168.1.100 - - [27/Jan/2013 15:43:16] command: C:\Python33\python.exe -u C:\python\webapp\cgi-bin\generate_data.py ""
192.168.1.100 - - [27/Jan/2013 15:43:16] b'["2-34", "3:21", "2.34", "2.45", "3.01", "2:01", "2:01", "3:10", "2-22", "2-0
1", "2.01", "2:16"]\r\n'
after I use as_dict and I also applied in the generate_data.py
but :
1. I didn't find anything I should change in the coachapp.py
I find the code of coachapp.py on page287 is just as same as page282
2.And I have another problem:
192.168.1.100 - - [27/Jan/2013 15:48:11] command: C:\Python33\python.exe -u C:\python\webapp\cgi-bin\generate_data.py ""
192.168.1.100 - - [27/Jan/2013 15:48:12] b'{"DOB": "2002-3-14", "Name": "James Lee", "Top3": ["2.01", "2.16", "2.22"]}\r
\n'
192.168.1.100 - - [27/Jan/2013 15:48:12] CGI script exited OK
I thought it seem like that I have been succeed put out the the data from generate_data.py as dictionary
but It can not be get by the android phone?
What did I do wrong?
This post has been edited by weiyan linn: 27 January 2013 - 01:12 PM












