#列表生成式:def f(n): return n**3x = [f(x) for x in range(10)]print(x) 转载于:https://www.cnblogs.com/styleonme/p/11151437.html