高等继续教育 / Python编程
题型描述: 编程题
某程序可去除字符串中的html标签,请将缺失的语句补全。
ss='<p><span>【资源简介】</span>'
str_ = ''
flag = 1
for ele in ss:
if ele == "<":
flag = 0
elif ele == '>':
flag = 1
continue
if flag == 1:
___________________
print(str_)
参考答案:
佳题速递: