samedi 27 octobre 2018

ImportError: cannot import name 'Random' in pycharm

I write a simple python in pycharm:

import requests

req = requests.get("http://phika.ir/")
print(req)

req = requests.get("https://phika.ir/python")
print(req)

but in result I came up with:

random
from random import Random as _Random
ImportError: cannot import name 'Random'

as you see, I didn't use random function!




Aucun commentaire:

Enregistrer un commentaire