当前位置:首页 > 文章列表 > 文章 > python教程 > Python谷歌搜索技巧与结果分析教程

Python谷歌搜索技巧与结果分析教程

2025-12-11 09:36:34 0浏览 收藏
推广推荐
下载万磁搜索绿色版 ➜
支持 PC / 移动端,安全直达

本篇文章主要是结合我之前面试的各种经历和实战开发中遇到的问题解决经验整理的,希望这篇《Python谷歌搜索高级用法与结果解析教程》对你有很大帮助!欢迎收藏,分享给更多的需要的朋友学习~

Python googlesearch模块高级搜索与结果解析教程

本教程旨在解决使用Python `googlesearch`模块时遇到的`advanced`参数`TypeError`问题,并详细阐述如何通过该模块进行Google搜索,以及如何进一步获取搜索结果的详细描述(即实现网页内容抓取)。文章将澄清不同`googlesearch`包的差异,提供正确的安装与使用方法,并结合`requests`和`BeautifulSoup4`库,演示从搜索结果页面提取标题和摘要的完整流程,帮助开发者高效、准确地获取网络信息。

1. googlesearch模块简介与advanced参数的困惑

googlesearch是一个方便Python开发者进行Google搜索的第三方库,它能够模拟浏览器行为,获取搜索结果的URL列表。然而,用户在使用过程中常遇到search()函数不接受advanced参数的TypeError,这通常源于对不同googlesearch相关包的混淆以及对模块功能的误解。

1.1 TypeError: search() got an unexpected keyword argument 'advanced' 的原因

这个错误通常表明您当前安装的googlesearch库版本或具体实现中,search()函数并不支持名为advanced的关键字参数。在Python生态系统中,存在多个名称相似但功能和API略有差异的库,例如:

  • google 包 (PyPI: google):这是最常见且广泛使用的googlesearch实现,通常通过pip install google安装,导入时为from googlesearch import search。这个包的search函数包含advanced参数,它主要用于迭代返回搜索结果的URL。
  • googlesearch-python 包 (PyPI: googlesearch-python):您提到的文档链接(pypi.org/project/googlesearch-python)指向的是这个包。尽管其文档中可能提及advanced参数,但实际功能和默认行为可能与用户的预期(直接返回描述)不符,或者您安装的版本可能过旧或不兼容。TypeError可能意味着即使是googlesearch-python,在特定版本下也可能不支持该参数,或者您实际安装的是google包而非googlesearch-python。

1.2 正确的安装与验证

为了确保您使用的是文档中提及的googlesearch-python包,请尝试使用以下命令重新安装或更新:

pip install googlesearch-python --upgrade

安装完成后,可以通过查看模块的帮助文档来验证其支持的参数:

from googlesearch import search
help(search)

这将显示search函数的签名和可用参数。如果advanced参数仍然不在其中,则说明您当前使用的库版本或实现确实不支持此参数用于直接返回描述。

2. googlesearch模块的基本使用

无论使用哪个版本的googlesearch,其核心功能都是获取搜索结果的URL。以下是基本的用法示例:

from googlesearch import search

query = "Python web scraping tutorial"
num_results = 5 # 限制搜索结果数量

print(f"Searching for: '{query}'")
for url in search(query, num_results=num_results, stop=num_results, pause=2):
    print(url)

参数说明:

  • query: 您的搜索关键词。
  • num_results (或 num): 每次请求返回的搜索结果数量(可能不是最终迭代的总数)。
  • stop: 停止迭代的总结果数量。当获取到指定数量的结果后,迭代会停止。
  • pause: 每次请求之间暂停的秒数,用于模拟人类行为,避免被Google检测为机器人而封锁IP。

3. 获取搜索结果描述:结合网页抓取技术

googlesearch模块本身通常只返回URL。要获取每个URL对应的标题、摘要或其他详细信息,您需要进行二次操作,即“网页抓取”(Web Scraping)。这意味着在获取到URL列表后,您需要逐一访问这些URL,并解析其HTML内容以提取所需信息。

我们将使用requests库来发送HTTP请求获取网页内容,并使用BeautifulSoup4库来解析HTML。

3.1 安装必要的库

pip install requests beautifulsoup4

3.2 示例代码:获取URL及对应页面的标题和描述

import requests
from bs4 import BeautifulSoup
from googlesearch import search
import time

def get_page_details(url):
    """
    访问指定URL,并尝试提取页面的标题和元描述。
    """
    try:
        headers = {
            'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36'
        }
        response = requests.get(url, headers=headers, timeout=10)
        response.raise_for_status()  # 检查HTTP错误
        soup = BeautifulSoup(response.text, 'html.parser')

        # 提取标题
        title = soup.title.string if soup.title else 'No Title Found'

        # 提取元描述 (meta description)
        description = 'No Description Found'
        meta_description = soup.find('meta', attrs={'name': 'description'})
        if meta_description and 'content' in meta_description.attrs:
            description = meta_description['content'].strip()
        elif soup.find('p'): # 如果没有meta description,尝试提取第一个段落作为描述
            description = soup.find('p').get_text(strip=True)[:200] + '...' # 限制长度

        return title, description
    except requests.exceptions.RequestException as e:
        print(f"Error accessing {url}: {e}")
        return 'Error', 'Error'
    except Exception as e:
        print(f"Error parsing {url}: {e}")
        return 'Error', 'Error'

if __name__ == "__main__":
    search_query = "Python flask rest api tutorial"
    max_results_to_process = 5 # 限制处理的搜索结果数量

    print(f"Performing Google search for: '{search_query}'")
    found_urls = []
    for url in search(search_query, num_results=10, stop=max_results_to_process, pause=2):
        found_urls.append(url)
        print(f"Found URL: {url}")
        time.sleep(1) # 在获取每个URL后稍作暂停

    print("\n--- Fetching details for found URLs ---")
    for i, url in enumerate(found_urls):
        print(f"\nProcessing result {i+1}/{len(found_urls)}: {url}")
        title, description = get_page_details(url)
        print(f"  Title: {title}")
        print(f"  Description: {description}")
        time.sleep(3) # 在访问每个页面后暂停,避免被目标网站封锁

代码解析:

  1. get_page_details(url) 函数:
    • 使用requests.get()方法访问每个搜索结果的URL。为了模拟真实浏览器,我们添加了User-Agent请求头。
    • response.raise_for_status()用于检查HTTP请求是否成功。
    • BeautifulSoup(response.text, 'html.parser')将网页的HTML内容解析成一个可操作的对象。
    • soup.title.string提取页面的标签内容。</li><li>soup.find('meta', attrs={'name': 'description'})尝试查找HTML中的元描述标签。如果找到,则提取其content属性作为描述。</li><li>如果未找到元描述,作为备用方案,我们尝试提取页面中第一个<p>标签的文本作为描述,并限制其长度。</li><li>包含错误处理,以应对网络问题或解析失败。</li></ul></li><li><strong>主程序流程:</strong><ul><li>首先使用googlesearch.search()获取一系列URL。</li><li>然后遍历这些URL,对每个URL调用get_page_details()函数来获取详细信息。</li><li>在googlesearch的请求之间以及访问每个目标页面之间都加入了time.sleep(),这是<strong>非常重要</strong>的,可以有效降低被Google或目标网站封锁的风险。</li></ul></li></ol><h3>4. 注意事项与替代方案</h3><ul><li><strong>频率限制与IP封锁:</strong> 频繁地进行自动化搜索和抓取很容易触发Google或目标网站的频率限制,导致您的IP被暂时或永久封锁。务必使用time.sleep(),并考虑使用代理IP池。</li><li><strong>用户代理 (User-Agent):</strong> 始终在requests请求中设置User-Agent头,使其看起来像一个真实的浏览器请求。</li><li><strong>遵守robots.txt:</strong> 在抓取任何网站之前,最好检查其robots.txt文件,了解哪些内容可以抓取,哪些不可以。</li><li><strong>网站结构变化:</strong> 网页的HTML结构可能会随时改变,导致您的BeautifulSoup选择器失效。您的抓取代码需要定期维护和更新。</li><li><strong>Google Custom Search API:</strong> 如果您需要更稳定、更官方的Google搜索结果,并且愿意支付费用,可以考虑使用Google Custom Search API。它提供了结构化的JSON响应,包含标题、摘要和URL等信息,无需进行网页抓取。</li></ul><h3>5. 总结</h3><p>googlesearch模块是进行Python自动化Google搜索的强大工具,但它主要用于获取URL。对于获取搜索结果的详细描述(如标题和摘要),需要结合requests和BeautifulSoup4等网页抓取库进行二次处理。理解不同googlesearch包的差异,正确处理advanced参数的TypeError,并遵循网页抓取的最佳实践(如设置延迟、User-Agent和错误处理),是成功实现自动化信息获取的关键。对于大规模或商业用途,官方API通常是更稳定和可靠的选择。</p><p>到这里,我们也就讲完了《Python谷歌搜索技巧与结果分析教程》的内容了。个人认为,基础知识的学习和巩固,是为了更好的将其运用到项目中,欢迎关注golang学习网公众号,带你了解更多关于的知识点!</p> </div> <div class="labsList"> </div> <div class="cateBox"> <div class="cateItem"> <a href="/article/416235.html" title="JavaScript原型链解析:继承与属性查找全解" class="img_box"> <img src="/uploads/20251211/1765416984693a2018a8cd9.jpg" onerror="this.onerror='',this.src='/assets/images/moren/morentu.png'" alt="JavaScript原型链解析:继承与属性查找全解">JavaScript原型链解析:继承与属性查找全解 </a> <dl> <dt class="lineOverflow"><a href="/article/416235.html" title="JavaScript原型链解析:继承与属性查找全解" class="aBlack">上一篇<i></i></a></dt> <dd class="lineTwoOverflow">JavaScript原型链解析:继承与属性查找全解</dd> </dl> </div> <div class="cateItem"> <a href="/article/416237.html" title="Java对象比较:引用与值区别解析" class="img_box"> <img src="/uploads/20251211/1765417000693a20282cf51.jpg" onerror="this.onerror='',this.src='/assets/images/moren/morentu.png'" alt="Java对象比较:引用与值区别解析"> </a> <dl> <dt class="lineOverflow"><a href="/article/416237.html" class="aBlack" title="Java对象比较:引用与值区别解析">下一篇<i></i></a></dt> <dd class="lineTwoOverflow">Java对象比较:引用与值区别解析</dd> </dl> </div> </div> </div> </div> <div class="leftContBox pt0"> <div class="pdl20"> <div class="contTit"> <a href="/articlelist.html" class="more" title="查看更多">查看更多<i class="iconfont"></i></a> <div class="tit">最新文章</div> </div> </div> <ul class="newArticleList"> <li> <div class="contBox"> <a href="/article/416483.html" class="img_box" title="Gevent高效使用技巧与实战经验"> <img src="/uploads/20251211/1765428026693a4b3a46125.png" onerror="this.src='/assets/images/moren/morentu.png'" alt="Gevent高效使用技巧与实战经验"> </a> <dl> <dd class="cont1"> <span> <a href="/articlelist/19_new_0_1.html" class="aLightGray" title="文章">文章</a> · <a href="/articlelist/86_new_0_1.html" class="aLightGray" title="python教程">python教程</a>   |  48分钟前  |   </span> </dd> <dt class="lineOverflow"> <a href="/article/416483.html" class="aBlack" target="_blank" title="Gevent高效使用技巧与实战经验">Gevent高效使用技巧与实战经验</a> </dt> <dd class="cont2"> <span><i class="view"></i>251浏览</span> <span class="collectBtn user_collection" data-id="416483" data-type="article" title="收藏"><i class="collect"></i>收藏</span> </dd> </dl> </div> </li> <li> <div class="contBox"> <a href="/article/416456.html" class="img_box" title="Python操作HDF5文件:h5py库使用教程"> <img src="/uploads/20251211/1765426771693a4653aba1d.png" onerror="this.src='/assets/images/moren/morentu.png'" alt="Python操作HDF5文件:h5py库使用教程"> </a> <dl> <dd class="cont1"> <span> <a href="/articlelist/19_new_0_1.html" class="aLightGray" title="文章">文章</a> · <a href="/articlelist/86_new_0_1.html" class="aLightGray" title="python教程">python教程</a>   |  1小时前  |   </span> </dd> <dt class="lineOverflow"> <a href="/article/416456.html" class="aBlack" target="_blank" title="Python操作HDF5文件:h5py库使用教程">Python操作HDF5文件:h5py库使用教程</a> </dt> <dd class="cont2"> <span><i class="view"></i>292浏览</span> <span class="collectBtn user_collection" data-id="416456" data-type="article" title="收藏"><i class="collect"></i>收藏</span> </dd> </dl> </div> </li> <li> <div class="contBox"> <a href="/article/416435.html" class="img_box" title="Pythondeque高效操作全解析"> <img src="/uploads/20251211/1765425869693a42cde5b42.png" onerror="this.src='/assets/images/moren/morentu.png'" alt="Pythondeque高效操作全解析"> </a> <dl> <dd class="cont1"> <span> <a href="/articlelist/19_new_0_1.html" class="aLightGray" title="文章">文章</a> · <a href="/articlelist/86_new_0_1.html" class="aLightGray" title="python教程">python教程</a>   |  1小时前  |   </span> </dd> <dt class="lineOverflow"> <a href="/article/416435.html" class="aBlack" target="_blank" title="Pythondeque高效操作全解析">Pythondeque高效操作全解析</a> </dt> <dd class="cont2"> <span><i class="view"></i>120浏览</span> <span class="collectBtn user_collection" data-id="416435" data-type="article" title="收藏"><i class="collect"></i>收藏</span> </dd> </dl> </div> </li> <li> <div class="contBox"> <a href="/article/416433.html" class="img_box" title="ThinkPHP框架教程与实战应用"> <img src="/uploads/20251211/1765425808693a429078176.png" onerror="this.src='/assets/images/moren/morentu.png'" alt="ThinkPHP框架教程与实战应用"> </a> <dl> <dd class="cont1"> <span> <a href="/articlelist/19_new_0_1.html" class="aLightGray" title="文章">文章</a> · <a href="/articlelist/86_new_0_1.html" class="aLightGray" title="python教程">python教程</a>   |  1小时前  |   </span> </dd> <dt class="lineOverflow"> <a href="/article/416433.html" class="aBlack" target="_blank" title="ThinkPHP框架教程与实战应用">ThinkPHP框架教程与实战应用</a> </dt> <dd class="cont2"> <span><i class="view"></i>253浏览</span> <span class="collectBtn user_collection" data-id="416433" data-type="article" title="收藏"><i class="collect"></i>收藏</span> </dd> </dl> </div> </li> <li> <div class="contBox"> <a href="/article/416398.html" class="img_box" title="Python异常链原理与应用场景"> <img src="/uploads/20251211/1765424372693a3cf40a9e4.png" onerror="this.src='/assets/images/moren/morentu.png'" alt="Python异常链原理与应用场景"> </a> <dl> <dd class="cont1"> <span> <a href="/articlelist/19_new_0_1.html" class="aLightGray" title="文章">文章</a> · <a href="/articlelist/86_new_0_1.html" class="aLightGray" title="python教程">python教程</a>   |  1小时前  |   <a href="javascript:;" class="aLightGray" title="Python">Python</a> <a href="javascript:;" class="aLightGray" title="异常链">异常链</a> </span> </dd> <dt class="lineOverflow"> <a href="/article/416398.html" class="aBlack" target="_blank" title="Python异常链原理与应用场景">Python异常链原理与应用场景</a> </dt> <dd class="cont2"> <span><i class="view"></i>232浏览</span> <span class="collectBtn user_collection" data-id="416398" data-type="article" title="收藏"><i class="collect"></i>收藏</span> </dd> </dl> </div> </li> <li> <div class="contBox"> <a href="/article/416351.html" class="img_box" title="Tkinter按钮绑定问题解决全攻略"> <img src="/uploads/20251211/1765422219693a348bb0d01.jpg" onerror="this.src='/assets/images/moren/morentu.png'" alt="Tkinter按钮绑定问题解决全攻略"> </a> <dl> <dd class="cont1"> <span> <a href="/articlelist/19_new_0_1.html" class="aLightGray" title="文章">文章</a> · <a href="/articlelist/86_new_0_1.html" class="aLightGray" title="python教程">python教程</a>   |  2小时前  |   </span> </dd> <dt class="lineOverflow"> <a href="/article/416351.html" class="aBlack" target="_blank" title="Tkinter按钮绑定问题解决全攻略">Tkinter按钮绑定问题解决全攻略</a> </dt> <dd class="cont2"> <span><i class="view"></i>156浏览</span> <span class="collectBtn user_collection" data-id="416351" data-type="article" title="收藏"><i class="collect"></i>收藏</span> </dd> </dl> </div> </li> <li> <div class="contBox"> <a href="/article/416264.html" class="img_box" title="PyQuery库入门解析与使用教程"> <img src="/uploads/20251211/1765418257693a251101632.png" onerror="this.src='/assets/images/moren/morentu.png'" alt="PyQuery库入门解析与使用教程"> </a> <dl> <dd class="cont1"> <span> <a href="/articlelist/19_new_0_1.html" class="aLightGray" title="文章">文章</a> · <a href="/articlelist/86_new_0_1.html" class="aLightGray" title="python教程">python教程</a>   |  3小时前  |   </span> </dd> <dt class="lineOverflow"> <a href="/article/416264.html" class="aBlack" target="_blank" title="PyQuery库入门解析与使用教程">PyQuery库入门解析与使用教程</a> </dt> <dd class="cont2"> <span><i class="view"></i>187浏览</span> <span class="collectBtn user_collection" data-id="416264" data-type="article" title="收藏"><i class="collect"></i>收藏</span> </dd> </dl> </div> </li> <li> <div class="contBox"> <a href="/article/416248.html" class="img_box" title="Python中__all__的作用与使用方法解析"> <img src="/uploads/20251211/1765417525693a2235ce3f3.png" onerror="this.src='/assets/images/moren/morentu.png'" alt="Python中__all__的作用与使用方法解析"> </a> <dl> <dd class="cont1"> <span> <a href="/articlelist/19_new_0_1.html" class="aLightGray" title="文章">文章</a> · <a href="/articlelist/86_new_0_1.html" class="aLightGray" title="python教程">python教程</a>   |  3小时前  |   </span> </dd> <dt class="lineOverflow"> <a href="/article/416248.html" class="aBlack" target="_blank" title="Python中__all__的作用与使用方法解析">Python中__all__的作用与使用方法解析</a> </dt> <dd class="cont2"> <span><i class="view"></i>392浏览</span> <span class="collectBtn user_collection" data-id="416248" data-type="article" title="收藏"><i class="collect"></i>收藏</span> </dd> </dl> </div> </li> <li> <div class="contBox"> <a href="/article/416213.html" class="img_box" title="Python版本怎么选?新手入门指南"> <img src="/uploads/20251211/1765415970693a1c223a4c5.png" onerror="this.src='/assets/images/moren/morentu.png'" alt="Python版本怎么选?新手入门指南"> </a> <dl> <dd class="cont1"> <span> <a href="/articlelist/19_new_0_1.html" class="aLightGray" title="文章">文章</a> · <a href="/articlelist/86_new_0_1.html" class="aLightGray" title="python教程">python教程</a>   |  4小时前  |   </span> </dd> <dt class="lineOverflow"> <a href="/article/416213.html" class="aBlack" target="_blank" title="Python版本怎么选?新手入门指南">Python版本怎么选?新手入门指南</a> </dt> <dd class="cont2"> <span><i class="view"></i>426浏览</span> <span class="collectBtn user_collection" data-id="416213" data-type="article" title="收藏"><i class="collect"></i>收藏</span> </dd> </dl> </div> </li> <li> <div class="contBox"> <a href="/article/416180.html" class="img_box" title="Python如何重命名文件及操作方法"> <img src="/uploads/20251211/1765414528693a168012a44.png" onerror="this.src='/assets/images/moren/morentu.png'" alt="Python如何重命名文件及操作方法"> </a> <dl> <dd class="cont1"> <span> <a href="/articlelist/19_new_0_1.html" class="aLightGray" title="文章">文章</a> · <a href="/articlelist/86_new_0_1.html" class="aLightGray" title="python教程">python教程</a>   |  4小时前  |   <a href="javascript:;" class="aLightGray" title="Python">Python</a> <a href="javascript:;" class="aLightGray" title="重命名文件">重命名文件</a> </span> </dd> <dt class="lineOverflow"> <a href="/article/416180.html" class="aBlack" target="_blank" title="Python如何重命名文件及操作方法">Python如何重命名文件及操作方法</a> </dt> <dd class="cont2"> <span><i class="view"></i>170浏览</span> <span class="collectBtn user_collection" data-id="416180" data-type="article" title="收藏"><i class="collect"></i>收藏</span> </dd> </dl> </div> </li> <li> <div class="contBox"> <a href="/article/416174.html" class="img_box" title="Python多线程与多进程详解"> <img src="/uploads/20251211/1765414287693a158f3db69.png" onerror="this.src='/assets/images/moren/morentu.png'" alt="Python多线程与多进程详解"> </a> <dl> <dd class="cont1"> <span> <a href="/articlelist/19_new_0_1.html" class="aLightGray" title="文章">文章</a> · <a href="/articlelist/86_new_0_1.html" class="aLightGray" title="python教程">python教程</a>   |  4小时前  |   </span> </dd> <dt class="lineOverflow"> <a href="/article/416174.html" class="aBlack" target="_blank" title="Python多线程与多进程详解">Python多线程与多进程详解</a> </dt> <dd class="cont2"> <span><i class="view"></i>115浏览</span> <span class="collectBtn user_collection" data-id="416174" data-type="article" title="收藏"><i class="collect"></i>收藏</span> </dd> </dl> </div> </li> <li> <div class="contBox"> <a href="/article/416170.html" class="img_box" title="Python调用文件对话框的实用方法"> <img src="/uploads/20251211/1765414110693a14deb63f7.png" onerror="this.src='/assets/images/moren/morentu.png'" alt="Python调用文件对话框的实用方法"> </a> <dl> <dd class="cont1"> <span> <a href="/articlelist/19_new_0_1.html" class="aLightGray" title="文章">文章</a> · <a href="/articlelist/86_new_0_1.html" class="aLightGray" title="python教程">python教程</a>   |  4小时前  |   </span> </dd> <dt class="lineOverflow"> <a href="/article/416170.html" class="aBlack" target="_blank" title="Python调用文件对话框的实用方法">Python调用文件对话框的实用方法</a> </dt> <dd class="cont2"> <span><i class="view"></i>223浏览</span> <span class="collectBtn user_collection" data-id="416170" data-type="article" title="收藏"><i class="collect"></i>收藏</span> </dd> </dl> </div> </li> </ul> </div> </div> <div class="mainRight"> <!-- 右侧广告位banner --> <div class="rightContBox" style="margin-top: 0px;"> <div class="rightTit"> <a href="/courselist.html" class="more" title="查看更多">查看更多<i class="iconfont"></i></a> <div class="tit lineOverflow">课程推荐</div> </div> <ul class="lessonRecomRList"> <li> <a href="/course/9.html" class="img_box" target="_blank" title="前端进阶之JavaScript设计模式"> <img src="/uploads/20221222/52fd0f23a454c71029c2c72d206ed815.jpg" onerror="this.onerror='',this.src='/assets/images/moren/morentu.png'" alt="前端进阶之JavaScript设计模式"> </a> <dl> <dt class="lineTwoOverflow"><a href="/course/9.html" target="_blank" class="aBlack" title="前端进阶之JavaScript设计模式">前端进阶之JavaScript设计模式</a></dt> <dd class="cont1 lineTwoOverflow"> 设计模式是开发人员在软件开发过程中面临一般问题时的解决方案,代表了最佳的实践。本课程的主打内容包括JS常见设计模式以及具体应用场景,打造一站式知识长龙服务,适合有JS基础的同学学习。 </dd> <dd class="cont2">543次学习</dd> </dl> </li> <li> <a href="/course/2.html" class="img_box" target="_blank" title="GO语言核心编程课程"> <img src="/uploads/20221221/634ad7404159bfefc6a54a564d437b5f.png" onerror="this.onerror='',this.src='/assets/images/moren/morentu.png'" alt="GO语言核心编程课程"> </a> <dl> <dt class="lineTwoOverflow"><a href="/course/2.html" target="_blank" class="aBlack" title="GO语言核心编程课程">GO语言核心编程课程</a></dt> <dd class="cont1 lineTwoOverflow"> 本课程采用真实案例,全面具体可落地,从理论到实践,一步一步将GO核心编程技术、编程思想、底层实现融会贯通,使学习者贴近时代脉搏,做IT互联网时代的弄潮儿。 </dd> <dd class="cont2">516次学习</dd> </dl> </li> <li> <a href="/course/74.html" class="img_box" target="_blank" title="简单聊聊mysql8与网络通信"> <img src="/uploads/20240103/bad35fe14edbd214bee16f88343ac57c.png" onerror="this.onerror='',this.src='/assets/images/moren/morentu.png'" alt="简单聊聊mysql8与网络通信"> </a> <dl> <dt class="lineTwoOverflow"><a href="/course/74.html" target="_blank" class="aBlack" title="简单聊聊mysql8与网络通信">简单聊聊mysql8与网络通信</a></dt> <dd class="cont1 lineTwoOverflow"> 如有问题加微信:Le-studyg;在课程中,我们将首先介绍MySQL8的新特性,包括性能优化、安全增强、新数据类型等,帮助学生快速熟悉MySQL8的最新功能。接着,我们将深入解析MySQL的网络通信机制,包括协议、连接管理、数据传输等,让 </dd> <dd class="cont2">500次学习</dd> </dl> </li> <li> <a href="/course/57.html" class="img_box" target="_blank" title="JavaScript正则表达式基础与实战"> <img src="/uploads/20221226/bbe4083bb3cb0dd135fb02c31c3785fb.jpg" onerror="this.onerror='',this.src='/assets/images/moren/morentu.png'" alt="JavaScript正则表达式基础与实战"> </a> <dl> <dt class="lineTwoOverflow"><a href="/course/57.html" target="_blank" class="aBlack" title="JavaScript正则表达式基础与实战">JavaScript正则表达式基础与实战</a></dt> <dd class="cont1 lineTwoOverflow"> 在任何一门编程语言中,正则表达式,都是一项重要的知识,它提供了高效的字符串匹配与捕获机制,可以极大的简化程序设计。 </dd> <dd class="cont2">487次学习</dd> </dl> </li> <li> <a href="/course/28.html" class="img_box" target="_blank" title="从零制作响应式网站—Grid布局"> <img src="/uploads/20221223/ac110f88206daeab6c0cf38ebf5fe9ed.jpg" onerror="this.onerror='',this.src='/assets/images/moren/morentu.png'" alt="从零制作响应式网站—Grid布局"> </a> <dl> <dt class="lineTwoOverflow"><a href="/course/28.html" target="_blank" class="aBlack" title="从零制作响应式网站—Grid布局">从零制作响应式网站—Grid布局</a></dt> <dd class="cont1 lineTwoOverflow"> 本系列教程将展示从零制作一个假想的网络科技公司官网,分为导航,轮播,关于我们,成功案例,服务流程,团队介绍,数据部分,公司动态,底部信息等内容区块。网站整体采用CSSGrid布局,支持响应式,有流畅过渡和展现动画。 </dd> <dd class="cont2">485次学习</dd> </dl> </li> </ul> </div> <div class="rightContBox"> <div class="rightTit"> <a href="/ai.html" class="more" title="查看更多">查看更多<i class="iconfont"></i></a> <div class="tit lineOverflow">AI推荐</div> </div> <ul class="lessonRecomRList"> <li> <a href="/ai/13100.html" target="_blank" title="ChatExcel酷表:告别Excel难题,北大团队AI助手助您轻松处理数据" class="img_box"> <img src="/uploads/20251027/176155320368ff2b3345c06.jpg" onerror="this.onerror='',this.src='/assets/images/moren/morentu.png'" alt="ChatExcel酷表:告别Excel难题,北大团队AI助手助您轻松处理数据" style="object-fit:cover;width:100%;height:100%;"> </a> <dl> <dt class="lineTwoOverflow"><a href="/ai/13100.html" class="aBlack" target="_blank" title="ChatExcel酷表">ChatExcel酷表</a></dt> <dd class="cont1 lineTwoOverflow"> ChatExcel酷表是由北京大学团队打造的Excel聊天机器人,用自然语言操控表格,简化数据处理,告别繁琐操作,提升工作效率!适用于学生、上班族及政府人员。 </dd> <dd class="cont2">3264次使用</dd> </dl> </li> <li> <a href="/ai/13099.html" target="_blank" title="Any绘本:开源免费AI绘本创作工具深度解析" class="img_box"> <img src="/uploads/20251023/176120760368f9e5333da5f.jpg" onerror="this.onerror='',this.src='/assets/images/moren/morentu.png'" alt="Any绘本:开源免费AI绘本创作工具深度解析" style="object-fit:cover;width:100%;height:100%;"> </a> <dl> <dt class="lineTwoOverflow"><a href="/ai/13099.html" class="aBlack" target="_blank" title="Any绘本">Any绘本</a></dt> <dd class="cont1 lineTwoOverflow"> 探索Any绘本(anypicturebook.com/zh),一款开源免费的AI绘本创作工具,基于Google Gemini与Flux AI模型,让您轻松创作个性化绘本。适用于家庭、教育、创作等多种场景,零门槛,高自由度,技术透明,本地可控。 </dd> <dd class="cont2">3478次使用</dd> </dl> </li> <li> <a href="/ai/13098.html" target="_blank" title="可赞AI:AI驱动办公可视化智能工具,一键高效生成文档图表脑图" class="img_box"> <img src="/uploads/20251021/176103600268f746e238bb8.jpg" onerror="this.onerror='',this.src='/assets/images/moren/morentu.png'" alt="可赞AI:AI驱动办公可视化智能工具,一键高效生成文档图表脑图" style="object-fit:cover;width:100%;height:100%;"> </a> <dl> <dt class="lineTwoOverflow"><a href="/ai/13098.html" class="aBlack" target="_blank" title="可赞AI">可赞AI</a></dt> <dd class="cont1 lineTwoOverflow"> 可赞AI,AI驱动的办公可视化智能工具,助您轻松实现文本与可视化元素高效转化。无论是智能文档生成、多格式文本解析,还是一键生成专业图表、脑图、知识卡片,可赞AI都能让信息处理更清晰高效。覆盖数据汇报、会议纪要、内容营销等全场景,大幅提升办公效率,降低专业门槛,是您提升工作效率的得力助手。 </dd> <dd class="cont2">3505次使用</dd> </dl> </li> <li> <a href="/ai/13097.html" target="_blank" title="星月写作:AI网文创作神器,助力爆款小说速成" class="img_box"> <img src="/uploads/20251014/176043000368ee07b3159d6.jpg" onerror="this.onerror='',this.src='/assets/images/moren/morentu.png'" alt="星月写作:AI网文创作神器,助力爆款小说速成" style="object-fit:cover;width:100%;height:100%;"> </a> <dl> <dt class="lineTwoOverflow"><a href="/ai/13097.html" class="aBlack" target="_blank" title="星月写作">星月写作</a></dt> <dd class="cont1 lineTwoOverflow"> 星月写作是国内首款聚焦中文网络小说创作的AI辅助工具,解决网文作者从构思到变现的全流程痛点。AI扫榜、专属模板、全链路适配,助力新人快速上手,资深作者效率倍增。 </dd> <dd class="cont2">4616次使用</dd> </dl> </li> <li> <a href="/ai/13096.html" target="_blank" title="MagicLight.ai:叙事驱动AI动画视频创作平台 | 高效生成专业级故事动画" class="img_box"> <img src="/uploads/20251014/176040000268ed9282edf80.jpg" onerror="this.onerror='',this.src='/assets/images/moren/morentu.png'" alt="MagicLight.ai:叙事驱动AI动画视频创作平台 | 高效生成专业级故事动画" style="object-fit:cover;width:100%;height:100%;"> </a> <dl> <dt class="lineTwoOverflow"><a href="/ai/13096.html" class="aBlack" target="_blank" title="MagicLight">MagicLight</a></dt> <dd class="cont1 lineTwoOverflow"> MagicLight.ai是全球首款叙事驱动型AI动画视频创作平台,专注于解决从故事想法到完整动画的全流程痛点。它通过自研AI模型,保障角色、风格、场景高度一致性,让零动画经验者也能高效产出专业级叙事内容。广泛适用于独立创作者、动画工作室、教育机构及企业营销,助您轻松实现创意落地与商业化。 </dd> <dd class="cont2">3882次使用</dd> </dl> </li> </ul> </div> <!-- 相关文章 --> <div class="rightContBox"> <div class="rightTit"> <a href="/articlelist.html" class="more" title="查看更多">查看更多<i class="iconfont"></i></a> <div class="tit lineOverflow">相关文章</div> </div> <ul class="aboutArticleRList"> <li> <dl> <dt class="lineTwoOverflow"><a href="/article/80964.html" class="aBlack" title="Flask框架安装技巧:让你的开发更高效">Flask框架安装技巧:让你的开发更高效</a></dt> <dd> <span class="left">2024-01-03</span> <span class="right">501浏览</span> </dd> </dl> </li> <li> <dl> <dt class="lineTwoOverflow"><a href="/article/90241.html" class="aBlack" title="Django框架中的并发处理技巧">Django框架中的并发处理技巧</a></dt> <dd> <span class="left">2024-01-22</span> <span class="right">501浏览</span> </dd> </dl> </li> <li> <dl> <dt class="lineTwoOverflow"><a href="/article/88174.html" class="aBlack" title="提升Python包下载速度的方法——正确配置pip的国内源">提升Python包下载速度的方法——正确配置pip的国内源</a></dt> <dd> <span class="left">2024-01-17</span> <span class="right">501浏览</span> </dd> </dl> </li> <li> <dl> <dt class="lineTwoOverflow"><a href="/article/113474.html" class="aBlack" title="Python与C++:哪个编程语言更适合初学者?">Python与C++:哪个编程语言更适合初学者?</a></dt> <dd> <span class="left">2024-03-25</span> <span class="right">501浏览</span> </dd> </dl> </li> <li> <dl> <dt class="lineTwoOverflow"><a href="/article/120624.html" class="aBlack" title="品牌建设技巧">品牌建设技巧</a></dt> <dd> <span class="left">2024-04-06</span> <span class="right">501浏览</span> </dd> </dl> </li> </ul> </div> </div> </div> <div class="footer"> <div class="footerIn"> <div class="footLeft"> <div class="linkBox"> <a href="/about/1.html" target="_blank" class="aBlack" title="关于我们">关于我们</a> <a href="/about/5.html" target="_blank" class="aBlack" title="免责声明">免责声明</a> <a href="#" class="aBlack" title="意见反馈">意见反馈</a> <a href="/about/2.html" class="aBlack" target="_blank" title="联系我们">联系我们</a> <a href="/send.html" class="aBlack" title="广告合作">内容提交</a> </div> <div class="footTip">Golang学习网:公益在线Go学习平台,帮助Go学习者快速成长!</div> <div class="shareBox"> <span><i class="qq"></i>技术交流群</span> </div> <div class="copyRight"> Copyright 2023 http://www.17golang.com/ All Rights Reserved | <a href="https://beian.miit.gov.cn/" target="_blank" title="备案">苏ICP备2023003363号-1</a> </div> </div> <div class="footRight"> <ul class="encodeList"> <li> <div class="encodeImg"> <img src="/assets/examples/qrcode_for_gh.jpg" alt="Golang学习网"> </div> <div class="tit">关注公众号</div> <div class="tip">Golang学习网</div> </li> <div class="clear"></div> </ul> </div> <div class="clear"></div> </div> </div> <!-- 微信登录弹窗 --> <style> .popupBg .n-error{ color: red; } </style> <div class="popupBg"> <div class="loginBoxBox"> <div class="imgbg"> <img src="/assets/images/leftlogo.jpg" alt=""> </div> <!-- 微信登录 --> <div class="loginInfo encodeLogin" style="display: none;"> <div class="closeIcon" onclick="$('.popupBg').hide();"></div> <div class="changeLoginType cursorPointer create_wxqrcode" onclick="$('.loginInfo').hide();$('.passwordLogin').show();"> <div class="tip">密码登录在这里</div> </div> <div class="encodeInfo"> <div class="tit"><i></i> 微信扫码登录或注册</div> <div class="encodeImg"> <span id="wx_login_qrcode"><img src="/assets/examples/code.png" alt="二维码"></span> <!-- <div class="refreshBox"> <p>二维码失效</p> <button type="button" class="create_wxqrcode">刷新1111</button> </div> --> </div> <div class="tip">打开微信扫一扫,快速登录/注册</div> </div> <div class="beforeLoginTip">登录即同意 <a href="#" class="aBlue" title="用户协议">用户协议</a> 和 <a href="#" class="aBlue" title="隐私政策">隐私政策</a></div> </div> <!-- 密码登录 --> <div class="loginInfo passwordLogin"> <div class="closeIcon" onclick="$('.popupBg').hide();"></div> <div class="changeLoginType cursorPointer create_wxqrcode" onclick="$('.loginInfo').hide();$('.encodeLogin').show();"> <div class="tip">微信登录更方便</div> </div> <div class="passwordInfo"> <ul class="logintabs selfTabMenu"> <li class="selfTabItem loginFormLi curr">密码登录</li> <li class="selfTabItem registerFormBox ">注册账号</li> </ul> <div class="selfTabContBox"> <div class="selfTabCont loginFormBox" style="display: block;"> <form name="form" id="login-form" class="form-vertical form" method="POST" action="/index/user/login"> <input type="hidden" name="url" value="//www.17golang.com/article/416236.html"/> <input type="hidden" name="__token__" value="6e5c22a76a08a53c344b12823567e665" /> <div class="form-group" style="height:70px;"> <input class="form-control" id="account" type="text" name="account" value="" data-rule="required" placeholder="邮箱/用户名" autocomplete="off"> </div> <div class="form-group" style="height:70px;"> <input class="form-control" id="password" type="password" name="password" data-rule="required;password" placeholder="密码" autocomplete="off"> </div> <div class="codeBox" style="height:70px;"> <div class="form-group" style="height:70px; width:205px; float: left;"> <input type="text" name="captcha" class="form-control" placeholder="验证码" data-rule="required;length(4)" /> </div> <span class="input-group-btn" style="padding:0;border:none;"> <img src="/captcha.html" width="100" height="45" onclick="this.src = '/captcha.html?r=' + Math.random();"/> </span> </div> <div class="other"> <a href="#" class="forgetPwd aGray" onclick="$('.loginInfo').hide();$('.passwordForget').show();" title="忘记密码">忘记密码</a> </div> <div class="loginBtn mt25"> <button type="submit">登录</button> </div> </form> </div> <div class="selfTabCont registerFormBox" style="display: none;"> <form name="form1" id="register-form" class="form-vertical form" method="POST" action="/index/user/register"> <input type="hidden" name="invite_user_id" value="0"/> <input type="hidden" name="url" value="//www.17golang.com/article/416236.html"/> <input type="hidden" name="__token__" value="6e5c22a76a08a53c344b12823567e665" /> <div class="form-group" style="height:70px;"> <input type="text" name="email" id="email2" data-rule="required;email" class="form-control" placeholder="邮箱"> </div> <div class="form-group" style="height:70px;"> <input type="text" id="username" name="username" data-rule="required;username" class="form-control" placeholder="用户名必须3-30个字符"> </div> <div class="form-group" style="height:70px;"> <input type="password" id="password2" name="password" data-rule="required;password" class="form-control" placeholder="密码必须6-30个字符"> </div> <div class="codeBox" style="height:70px;"> <div class="form-group" style="height:70px; width:205px; float: left;"> <input type="text" name="captcha" class="form-control" placeholder="验证码" data-rule="required;length(4)" /> </div> <span class="input-group-btn" style="padding:0;border:none;"> <img src="/captcha.html" width="100" height="45" onclick="this.src = '/captcha.html?r=' + Math.random();"/> </span> </div> <div class="loginBtn"> <button type="submit">注册</button> </div> </form> </div> </div> </div> <div class="beforeLoginTip">登录即同意 <a href="https://www.17golang.com/about/3.html" target="_blank" class="aBlue" title="用户协议">用户协议</a> 和 <a href="https://www.17golang.com/about/4.html" target="_blank" class="aBlue" title="隐私政策">隐私政策</a></div> </div> <!-- 重置密码 --> <div class="loginInfo passwordForget"> <div class="closeIcon" onclick="$('.popupBg').hide();"></div> <div class="returnLogin cursorPointer" onclick="$('.passwordForget').hide();$('.passwordLogin').show();">返回登录</div> <div class="passwordInfo"> <ul class="logintabs selfTabMenu"> <li class="selfTabItem">重置密码</li> </ul> <div class="selfTabContBox"> <div class="selfTabCont"> <form id="resetpwd-form" class="form-horizontal form-layer nice-validator n-default n-bootstrap form" method="POST" action="/api/user/resetpwd.html" novalidate="novalidate"> <div style="height:70px;"> <input type="text" class="form-control" id="email" name="email" value="" placeholder="输入邮箱" aria-invalid="true"> </div> <div class="codeBox" style="height:70px;"> <div class="form-group" style="height:70px; width:205px; float: left;"> <input type="text" name="captcha" class="form-control" placeholder="验证码" /> </div> <span class="input-group-btn" style="padding:0;border:none;"> <a href="javascript:;" class="btn btn-primary btn-captcha cursorPointer" style="background: #2080F8; border-radius: 4px; color: #fff; padding: 12px; position: absolute;" data-url="/api/ems/send.html" data-type="email" data-event="resetpwd">发送验证码</a> </span> </div> <input type="password" class="form-control" id="newpassword" name="newpassword" value="" placeholder="请输入6-18位密码"> <div class="loginBtn mt25"> <button type="submit">重置密码</button> </div> </form> </div> </div> </div> </div> </div> </div> <script> var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?3dc5666f6478c7bf39cd5c91e597423d"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); </script> <script src="/assets/js/require.js" data-main="/assets/js/require-frontend.js?v=1671101972"></script> </body> </html>