Python词典理解
l = []for n in range(1, 11): l.append(n)
l = [n for n in range(1, 11)].
d = {}for n in range(1, 11):
d[n] = True # same value for eachd = {}d[i for i in range(1, 11)] = TrueSyntaxErrorfor.
d = {}for n in range(1, 11):
d[n] = nd = {}d[i for i in range(1, 11)] = [x for x in range(1, 11)]SyntaxErrorfor.
守着一只汪
一只萌萌小番薯
九州编程
catspeake
随时随地看视频慕课网APP
相关分类