这是我的计划,拿什么这个错误? def menuAdiciona():
nome = input("Digite o nome de quem fez o cafe: ")
nota = int(input("Que nota recebeu: "))
if len(nome.strip()) == 0:
menuAdiciona()
if
我有一个已经用lxml的Cleaner清理过的字符串,所以所有的链接现在都以Content的形式出现。现在我想删除所有没有href属性的链接,例如 <a rel="nofollow">Link to be removed</a>
应该成为 Link to be removed
同为: <a>Other link to be removed</a>
Shoudl成为: Other lin