我试图在列表中搜索包含变量v的单词。然后在找到时,打印包含变量的字符串。目前,当if
语句为真时,它会打印整个列表。
v = "g"
word = ["goodbye","goodmorning","foeach"]
for s in word:
if v in s:
print(s)
else:
print("finished")
答案 0 :(得分:1)
{!! Form::hidden('new-group-user-member', 0) !!}
{!! Form::checkbox('new-group-user-member', true, NULL) !!} Member