ImportError: cannot import name 'Random'

文件名不可以是random ,重命名即可
from Stack Overflow:
Name your file something else. In Python a script is a module, whose name is determined by the filename. So when you start out your file random.py with import random you are creating a loop in the module structure.

posted @ 2017-12-03 22:15  木子归零  阅读(3733)  评论(0编辑  收藏  举报