我在想在以下情况下(在for循环下的if / else语句),复杂度是O(n)还是O(n^2):
for character in string:
if character==something:
do something
else:
do something else.
谢谢你!