#2
naizhu22023-05-25 16:09
|
碰到下边一段代码,真的看不懂,请咨询一下这段代码是什么含义呢?
text="four score and 7 years"
lenwords={s:len(s) for s in text.split()}
print(lenwords["score"])