文件名不可以是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.