📜  python 检查字符串在数组中不存在 - Python 代码示例

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

代码示例1
arr_test = ["thetung1","thetung2","thetung3"]
title = "thetung"
if title not in arr_test:
    arr_test.append(title)