title: How to convert this curl statement to python requests?
body: <p>I'm trying to convert a curl command to python:</p>
  
  <pre><code>curl -F media=@z.jpg "https://api.weixin.qq.com/cgi-bin/material/add_material?access_token=6Y_KkbNIaazLnWDG3g3QJVKCMJcACARBY&amp;type=image"
  </code></pre>
  
  <p>This command is workable. But the python requests code below is NOT:</p>
  
  <pre><code>with open('z.jpg','rb') as f:
      r = requests.post('https://api.weixin.qq.com/cgi-bin/material/add_material?access_token=6Y_KkbNIaazLnWDG3g3QJVKCMJcACARBY&amp;type=image', data={'media':f})
  </code></pre>
  
  <p>Anyone can help me modify this code to fix?</p>
  
  <p>Thanks.</p>