def generate_html_links():
# Prompt the user to input URLs
urls = []
for i in range(6):
url = input(f"Enter URL {i+1} or type 'done' to finish: ").strip()
if url.lower() == 'done' or not url:
break
urls.append(url)
# Define the base label for the links
base_label = "23.05.30会议"
# Generate the HTML links
html_links = []
for i, url in enumerate(urls, 1):
link = f"<br><a href='{url}'>{base_label}({i})</a>"
html_links.append(link)
# Join and return all HTML links
return ''.join(html_links)
# Run the function and print the result
html_output = generate_html_links()
print(html_output)
以上代码为Python把链接转化成html超链接。
以下为html搭建私人网站,会议记录视频
<!DOCTYPE html>
<html>
<head>
<title>Password Protected Page</title>
<script>
function validatePassword() {
var password = document.getElementById("password").value;
if (password === "***") {
// 更新此处以包含你的100字文本和超链接
document.getElementById("message").innerHTML = "感恩有你,共同进步。<br><br><b>2022年会议列表</b><br><br><a href='https://watch.wave.video/wQF8dQdJYFK8YSAZ'>22.12.13会议(1)</a><br><a href='https://watch.wave.video/OJ3gJKcoORxQaq5r'>22.12.13会议(2)</a><br><a href='https://watch.wave.video/Y6biRh1fyQCmStB9'>22.12.13会议(3)</a><br><br><a href='https://watch.wave.video/h4EEHsqgGRs7mDkj'>22.12.14会议(1)</a><br><a href='https://watch.wave.video/5wf5PLqopfxX8b6W'>22.12.14会议(2)</a><br><a href='https://watch.wave.video/oKte9JI3NXeC42K9'>22.12.14会议(3)</a><br><a href='https://watch.wave.video/xS2TT7Yc2HXQ3xMd'>22.12.14会议(4)</a><br><br><b>2023年会议列表</b><br><br><a href='https://watch.wave.video/hg6tjT5NIVQoiaF5'>23.04.27会议(1)</a><br><a href='https://watch.wave.video/5aSDBoobcgvnkZSH'>23.04.27会议(2)</a><br><br><a href='https://watch.wave.video/V4nF59FK7celgUAR'>23.05.30会议(1)</a><br><a href='https://watch.wave.video/ntshJfPdKEKzArxY'>23.05.30会议(2)</a><br><a href='https://watch.wave.video/QGRzXNnXxkNLtTjc'>23.05.30会议(3)</a><br><a href='https://watch.wave.video/vt4aPUflPXzvKQtl'>23.05.30会议(4)</a><br><a href='https://watch.wave.video/XiVJlaGkH95o6PaY'>23.05.30会议(5)</a><br><a href='https://watch.wave.video/8HripgbQ9gVIqBGK'>23.05.30会议(6)</a><br><br><a href='https://watch.wave.video/tFng0pEFR36baJgS'>23.07.29会议(1)</a><br><a href='https://watch.wave.video/2CWsFtXOlqTY2kaG'>23.07.29会议(2)</a><br><a href='https://watch.wave.video/Kzjki7sAMFuZ0Vtm'>23.07.29会议(3)</a><br><br><a href='https://watch.wave.video/ZV3Mw7WJIx8zXq9O'>23.08.27会议(1)</a><br><a href='https://watch.wave.video/pMGAIWgdpM6hDZIF'>23.08.27会议(2)</a><br><a href='https://watch.wave.video/0RHAqz4VJeJe6w8n'>23.08.27会议(3)</a><br><br><a href='https://watch.wave.video/w4Gr375SgTm9jzQ6'>23.09.10会议(1)</a><br><a href='https://watch.wave.video/T6LMXFT1D33QD6M9'>23.09.10会议(2)</a><br><br><a href='https://watch.wave.video/J6ROBFZjOWJIMyW5'>23.09.17会议(1)</a><br><a href='https://watch.wave.video/moGYMA6HAH7umFzd'>23.09.17会议(2)</a><br><br><a href='https://watch.wave.video/XPjFMVV7Es9HOdAP'>23.10.15会议(1)</a><br><a href='https://watch.wave.video/ogjqa4QbmXoHw8jN'>23.10.15会议(2)</a><br><br><a href='https://watch.wave.video/ai47Rr1Gni8sR0Is'>23.11.25会议(1)</a><br><a href='https://watch.wave.video/gnAD03ASOIjU9pV3'>23.11.25会议(2)</a><br><br><a href='https://watch.wave.video/YFAvsnIbz0YuZfP6'>23.11.26会议(1)</a><br><a href='https://watch.wave.video/jj2eYQJ0GvV1xIdW'>23.11.26会议(2)</a><br><br><a href='https://watch.wave.video/nCNRetcc1fOgCwqd'>23.12.10会议(1)</a><br><a href='https://watch.wave.video/FGL21PA3T0TgeiHv'>23.12.10会议(2)</a><br><br><a href='https://watch.wave.video/OD3qzp3XRcOyA6Hs'>23.12.18会议(1)*重要*</a><br><a href='https://watch.wave.video/91zrexIZQCxdrH5C'>23.12.18会议(2)*重要*</a><br><a href='https://watch.wave.video/Mh0Rj9vzlo0SNBpC'>23.12.18会议(3)*重要*</a>";
} else {
alert("Incorrect Password!");
}
}
</script>
</head>
<body>
<br><br><br>这里是博士的粉丝秘密基地,里面包含了博士的信息收录以及会议记录,请点击相应的会议记录查询。<br>如需密码,请私聊博士进行联系。
<h2>请输入密码:</h2>
<input type="password" id="password">
<button onclick="validatePassword()">Submit</button>
<p id="message"></p>
<img src="https://i.hd-r.cn/2d932cfbdb11dc338c5518e035e2ed28.png" alt="二维码" width="238" height="324">
</body>
</html>