mylist=[]
mylist.append(7)
mylist.extend(range(9,12))
can such a thing be done in a single line in python3?
I feel it should be trivial, but for some reason I can't recall nor find how to do that.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…