2.5 Python 语法进阶
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
li = ["zero", "one", "two"]len(li)li[1]li.append(1)for e in li:
print(e)i = 0
while i < len(li):
print(li[i])
i = i + 1di = {}for key, value in di.items():
print(f"{key} {value}")