CH7 Ssection 2 : Connect your server to wechat
The whole point is to connect the aliyun server with wechat, pass the verification of wechat, and start the application on wechat.
1. It took me so much time on Taken:

2. How can we chat with XML?
Write a function to fetch the data in the XML form wechat, parsing it, filter the "input" element as "cityname" from the XML data format,and then use this "cityname" to call the function to get the weather information, use POST in order to encapsulate XML content, send back to wechat.
Here is the key code:
@app.route('/wechat', methods=['POST'])
def wechat_msg():
msg_xml = request.get_data()
root = ET.fromstring(msg_xml)
data_xml = {}
It's hard to deal with xml, why people want to wrap the textual information in the XML structure?
How to know the type of the data that parsed from XML ?
The Element type is a flexible container object, designed to store hierarchical data structures in memory. The type can be described as a cross between a list and a dictionary.
So why I can't code without you?