1. 代码:
data=['a' for i in range(5)] print(data)
运行结果:
C:abccdxdddOldboypython-3.5.2-embed-amd64python.exe C:/abccdxddd/Oldboy/Py_Exercise/Day10/ex7.py ['a', 'a', 'a', 'a', 'a'] Process finished with exit code 0