摘要:
lst=[i*4 for i in range(1,11)] print(lst) # i*4 为元素根据i规律的表达式 E:\PycharmProjects\pythonProject\venv\Scripts\python.exe E:/PycharmProjects/pythonProject 阅读全文
摘要:
# for in # not in # in 列表的判断 in 和 not in lst=[10,56,98,100] print(10 in lst) #10是在列表里吗 print(10 not in lst) #10不在列表里吗 #列表的遍历 for item in lst: print(it 阅读全文