E501: line too long
我从这段代码中得到错误:
header, response = client.request('https://api.twitter.com/1.1/statuses /user_timeline.json?include_entities=true&screen_name='+username+'&count=1')
但如果我以这种方式或另一种方式写:
header, response = client.request('\
https://api.twitter.com/1.1/statuses/user_timeline.\
json?include_entities=true&screen_name='+username+'&count=1')
我收到此错误:
ValueError: Unsupported URL https://api.twitter.com/1.1/statuses/user_timeline .json?include_entities=true&screen_name=username&count=1 ().
或者我收到此错误:
ValueError: No JSON object could be decoded
所以请告诉我,我怎样才能通过这个错误?