jeudi 25 août 2016

AttributeError: 'module' object has no attribute 'randint'

I have a recent problem with random module

I dont understand why is that? I showed the exact path that goes to random.py but it still didnt work. python3.4 64bit using pycharm 2016.2.2 First group is real error Second group relates to help(random) Sorry about confusion.

File "C:/Users/blueg/Google Drive/Programming/Python/PycharmProjects/LearningPython/Random Module/random.py", line 1, in import random File "C:\Users\blueg\Google Drive\Programming\Python\PycharmProjects\LearningPython\Random Module\random.py", line 4, in a = random.randint(1,6) AttributeError: 'module' object has no attribute 'randint'


Help on module random:
NAME random
FILE c:\users\blueg\google drive\programming\python\pycharmprojects\learningpython\random

module\random.py




Aucun commentaire:

Enregistrer un commentaire