from random import randint # randint用于生成一个指定范围内的整数 alist = list() print(list('hello')) print(list((10,20,30))) astr = str() print(str(10)) print(str(['h','e','l','l','o'])) atuple = tuple() print(tuple('hello')) num_list = [randint(1,100) for i in range(10)] print(max(num_list)) print(min(num_list))
结果输出: