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.

原文地址:https://www.cnblogs.com/shuoli/p/7967630.html