import random num1,num2=input('请输入小于100的两个数值来产生随机数:').split() num1,num2=eval(num1),eval(num2) number=random.randint(num1,num2) if __name__ =='_main_': print('我是主函数') print('随意数值:',number)