def pal(s): # 判断回文字符串
st=[“”]*100
top=.-1
k=len(s)//2
for i in range (k) :
top += 1
st [top] = s[i]
if len(s)%2=1:
for i in range(k,len(s)):
tmp = st[top]
top -= 1
if
return False
return True
上述程序段中方框处可选语句为:
①k=k+1
②k=k-1
③tmp=s[i]
④tmp!=s[i]
则程序中(1)、(2)处的语句依次可为( )