📌  相关文章
📜  fruits = ["apple", "banana", "cherry"] for x in fruits: print(x) if x == "banana": break 识别输出? - 打字稿代码示例

📅  最后修改于: 2022-03-11 14:48:19.411000             🧑  作者: Mango

代码示例1
fruits = ["apple", "banana", "cherry"]
for x in fruits:
  print(x) 
  if x == "banana":
    break