3、实例:1、使用random模块ranint() 函数:
4、说明:因randint()函数属于random模块,必须在函数名称之前先加上random,告诉Python在random模块中寻找这个函数。