str1 = abdk3<h1>The content we need</h1>aaaaabbb<h2>The content we need2</h2>
Run Code Online (Sandbox Code Playgroud)
我们需要h1标签和h2标签内的内容.
最好的方法是什么?谢谢
谢谢您的帮助!
说我有这样的文本文件:
<html><head>Headline<html><head>more words
</script>even more words</script>
<html><head>Headline<html><head>more words
</script>even more words</script>
Run Code Online (Sandbox Code Playgroud)
我如何将标签放入如下列表中:
<html>
<head>
<html>
<head>
</script>
</script>
<html>
<head>
<html>
<head>
</script>
</script>
Run Code Online (Sandbox Code Playgroud)