recent call last):
File stdin, line 1, in module
NameError: name 'requests' is not defined
why it run into NameError: name 'requests' is not defined?--
https://mail.python.org/mailman/listinfo/python-list
?StockCode=0'
requests.get(url)
Traceback (most recent call last):
File stdin, line 1, in module
NameError: name 'requests' is not defined
why it run into NameError: name 'requests' is not defined?
Perhaps try mydown.requests.get(url)?
--
https://mail.python.org/mailman/listinfo
Greetings,
there is only one line in mydown.py .
import requests
...
import mydown
requests.get(url)
Traceback (most recent call last):
File stdin, line 1, in module
NameError: name 'requests' is not defined
You need to call mydown.requests, but I think you're missing
On Mon, 28 Jul 2014 11:52:03 +0800, 水静流深 wrote:
there is a simple file `mydown.py` saved in
`D:\Python34\Lib\site-packages`
there is only one line in mydown.py .
import requests
Just because mydown has imported requests, doesn't mean it is visible
everywhere. Each module is a separate