mirror of
https://github.com/krahets/hello-algo.git
synced 2026-06-28 00:24:21 +00:00
Improve Python code for importing modules.
This commit is contained in:
@@ -43,7 +43,7 @@ if __name__ == "__main__":
|
||||
for i in range(len(nums)):
|
||||
tmp.append(nums[i])
|
||||
print(f"\n通过索引遍历列表得到 tmp = {tmp}")
|
||||
|
||||
|
||||
tmp.clear()
|
||||
for num in nums:
|
||||
tmp.append(num)
|
||||
|
||||
Reference in New Issue
Block a user