《Python编程从入门到实践》day34

# 昨日知识点回顾

        json文件提取数据、绘制图表渐变色显示

# 今日知识点学习

第17章

17.1 使用Web API

        Web API作为网站的一部分,用于与使用具体URL请求特定信息的程序交互,这种请求称为API调用。

        17.1.1 Git 和 GitHub

                Git:分布式版本控制系统,帮助人们管理为项目所做的工作,避免一个人所做的影响其他人所做的修改(类似于共享文档)。在项目实现新功能时,Git跟踪你对每个文件所做的修改,确认代码可行后,提交上线项目新功能。如果犯错可撤回,可以返回之前任何可行状态。

                GitHub:让程序员可以协助开发项目的网站。

        17.1.2 使用API调用请求数据             

浏览器地址栏输入:https://api.github.com/search/repositories?q=language:python&sort=stars

                显示结果:

{"total_count": 14026425,"incomplete_results": true,"items": [{"id": 54346799,"node_id": "MDEwOlJlcG9zaXRvcnk1NDM0Njc5OQ==","name": "public-apis","full_name": "public-apis/public-apis","private": false,"owner": {"login": "public-apis","id": 51121562,"node_id": "MDEyOk9yZ2FuaXphdGlvbjUxMTIxNTYy","avatar_url": "https://avatars.githubusercontent.com/u/51121562?v=4","gravatar_id": "","url": "https://api.github.com/users/public-apis","html_url": "https://github.com/public-apis","followers_url": "https://api.github.com/users/public-apis/followers","following_url": "https://api.github.com/users/public-apis/following{/other_user}","gists_url": "https://api.github.com/users/public-apis/gists{/gist_id}","starred_url": "https://api.github.com/users/public-apis/starred{/owner}{/repo}","subscriptions_url": "https://api.github.com/users/public-apis/subscriptions","organizations_url": "https://api.github.com/users/public-apis/orgs","repos_url": "https://api.github.com/users/public-apis/repos","events_url": "https://api.github.com/users/public-apis/events{/privacy}","received_events_url": "https://api.github.com/users/public-apis/received_events","type": "Organization","site_admin": false},"html_url": "https://github.com/public-apis/public-apis","description": "A collective list of free APIs",
---snip---

        17.1.3 安装Requests

        17.1.4 处理API响应

import requests# 执行API调用并存储响应
url = 'https://api.github.com/search/repositories?q=language:python&sort=stars'
# 指定headers显示地要求使用这个版本的API
headers = {'Accept': 'application/vnd.github.v3+json'}
# requests调用API
r = requests.get(url, headers=headers)
# 状态码200表示请求成功
print(f"Status code:{r.status_code}")
# 将API响应赋给一个变量
response_dict = r.json()# 处理结果
print(response_dict.keys())# 运行结果:
# Status code:200
# dict_keys(['total_count', 'incomplete_results', 'items'])

        17.1.5 处理响应字典

import requests# 执行API调用并存储响应
url = 'https://api.github.com/search/repositories?q=language:python&sort=stars'
headers = {'Accept': 'application/vnd.github.v3+json'}
r = requests.get(url, headers=headers)
print(f"Status code:{r.status_code}")
# 将API响应赋给一个变量
response_dict = r.json()
print(f"Total repositories:{response_dict['total_count']}")# 探索有关仓库的信息
repo_dicts = response_dict['items']
print(f"Repositories returned:{len(repo_dicts)}")# 研究第一个仓库
repo_dict = repo_dicts[0]
print(f"\nKeys:{len(repo_dict)}")
for key in sorted(repo_dict.keys()):print(key)# 运行结果:
# Status code:200
# Total repositories:14400151
# Repositories returned:30
# 
# Keys:80
# allow_forking
# archive_url
# archived
# assignees_url
# blobs_url
# branches_url
# clone_url
# collaborators_url
# comments_url
# commits_url
# compare_url
# contents_url
# contributors_url
# created_at
# default_branch
# deployments_url
# description
# disabled
# downloads_url
# events_url
# fork
# forks
# forks_count
# forks_url
# full_name
# git_commits_url
# git_refs_url
# git_tags_url
# git_url
# has_discussions
# has_downloads
# has_issues
# has_pages
# has_projects
# has_wiki
# homepage
# hooks_url
# html_url
# id
# is_template
# issue_comment_url
# issue_events_url
# issues_url
# keys_url
# labels_url
# language
# languages_url
# license
# merges_url
# milestones_url
# mirror_url
# name
# node_id
# notifications_url
# open_issues
# open_issues_count
# owner
# private
# pulls_url
# pushed_at
# releases_url
# score
# size
# ssh_url
# stargazers_count
# stargazers_url
# statuses_url
# subscribers_url
# subscription_url
# svn_url
# tags_url
# teams_url
# topics
# trees_url
# updated_at
# url
# visibility
# watchers
# watchers_count
# web_commit_signoff_required
import requests# 执行API调用并存储响应
url = 'https://api.github.com/search/repositories?q=language:python&sort=stars'
headers = {'Accept': 'application/vnd.github.v3+json'}
r = requests.get(url, headers=headers)
print(f"Status code:{r.status_code}")
# 将API响应赋给一个变量
response_dict = r.json()
print(f"Total repositories:{response_dict['total_count']}")# 探索有关仓库的信息
repo_dicts = response_dict['items']
print(f"Repositories returned:{len(repo_dicts)}")# 研究第一个仓库
repo_dict = repo_dicts[0]print("\nSelected information about first respository:")
print(f"Name:{repo_dict['name']}")
print(f"Owner:{repo_dict['owner']['login']}")
print(f"Stars:{repo_dict['stargazers_count']}")
print(f"Resitory:{repo_dict['html_url']}")
print(f"Created:{repo_dict['created_at']}")
print(f"Updated:{repo_dict['updated_at']}")
print(f"Description:{repo_dict['description']}")# 运行结果:
# Status code:200
# Total repositories:11466073
# Repositories returned:30
# 
# Selected information about first respository:
# Name:docopt
# Owner:docopt
# Stars:7891
# Resitory:https://github.com/docopt/docopt
# Created:2012-04-07T17:45:14Z
# Updated:2024-05-15T15:47:30Z
# Description:This project is no longer maintained. Please see https://github.com/jazzband/docopt-ng

        17.1.6 概述最受欢迎的仓库

import requests# 执行API调用并存储响应
url = 'https://api.github.com/search/repositories?q=language:python&sort=stars'
headers = {'Accept': 'application/vnd.github.v3+json'}
r = requests.get(url, headers=headers)
print(f"Status code:{r.status_code}")
# 将API响应赋给一个变量
response_dict = r.json()
print(f"Total repositories:{response_dict['total_count']}")# 探索有关仓库的信息
repo_dicts = response_dict['items']
print(f"Repositories returned:{len(repo_dicts)}")# 研究第一个仓库
repo_dict = repo_dicts[0]print("\nSelected information about each respository:")
for repo_dict in repo_dicts:print(f"\nName:{repo_dict['name']}")print(f"Owner:{repo_dict['owner']['login']}")print(f"Stars:{repo_dict['stargazers_count']}")print(f"Resitory:{repo_dict['html_url']}")print(f"Created:{repo_dict['created_at']}")print(f"Updated:{repo_dict['updated_at']}")print(f"Description:{repo_dict['description']}")# 运行结果:
# Status code:200
# Total repositories:13942109
# Repositories returned:30
# 
# Selected information about each respository:
# 
# Name:public-apis
# Owner:public-apis
# Stars:294054
# Resitory:https://github.com/public-apis/public-apis
# Created:2016-03-20T23:49:42Z
# Updated:2024-05-20T13:09:53Z
# Description:A collective list of free APIs
# 
# Name:system-design-primer
# Owner:donnemartin
# Stars:257751
# Resitory:https://github.com/donnemartin/system-design-primer
# Created:2017-02-26T16:15:28Z
# Updated:2024-05-20T13:13:05Z
# Description:Learn how to design large-scale systems. Prep for the system design interview.  Includes Anki flashcards.
# 
# Name:stable-diffusion-webui
# Owner:AUTOMATIC1111
# Stars:131594
# Resitory:https://github.com/AUTOMATIC1111/stable-diffusion-webui
# Created:2022-08-22T14:05:26Z
# Updated:2024-05-20T12:57:38Z
# Description:Stable Diffusion web UI
# 
# Name:thefuck
# Owner:nvbn
# Stars:83115
# Resitory:https://github.com/nvbn/thefuck
# Created:2015-04-08T15:08:04Z
# Updated:2024-05-20T13:10:19Z
# Description:Magnificent app which corrects your previous console command.
# 
# Name:yt-dlp
# Owner:yt-dlp
# Stars:72475
# Resitory:https://github.com/yt-dlp/yt-dlp
# Created:2020-10-26T04:22:55Z
# Updated:2024-05-20T13:10:53Z
# Description:A feature-rich command-line audio/video downloader
# 
# Name:fastapi
# Owner:tiangolo
# Stars:71670
# Resitory:https://github.com/tiangolo/fastapi
# Created:2018-12-08T08:21:47Z
# Updated:2024-05-20T11:32:01Z
# Description:FastAPI framework, high performance, easy to learn, fast to code, ready for production
# 
# Name:devops-exercises
# Owner:bregman-arie
# Stars:63948
# Resitory:https://github.com/bregman-arie/devops-exercises
# Created:2019-10-03T17:31:21Z
# Updated:2024-05-20T12:42:03Z
# Description:Linux, Jenkins, AWS, SRE, Prometheus, Docker, Python, Ansible, Git, Kubernetes, Terraform, OpenStack, SQL, NoSQL, Azure, GCP, DNS, Elastic, Network, Virtualization. DevOps Interview Questions
# 
# Name:awesome-machine-learning
# Owner:josephmisiti
# Stars:63846
# Resitory:https://github.com/josephmisiti/awesome-machine-learning
# Created:2014-07-15T19:11:19Z
# Updated:2024-05-20T11:18:56Z
# Description:A curated list of awesome Machine Learning frameworks, libraries and software.
# 
# Name:whisper
# Owner:openai
# Stars:61613
# Resitory:https://github.com/openai/whisper
# Created:2022-09-16T20:02:54Z
# Updated:2024-05-20T13:03:43Z
# Description:Robust Speech Recognition via Large-Scale Weak Supervision
# 
# Name:scikit-learn
# Owner:scikit-learn
# Stars:58360
# Resitory:https://github.com/scikit-learn/scikit-learn
# Created:2010-08-17T09:43:38Z
# Updated:2024-05-20T12:36:35Z
# Description:scikit-learn: machine learning in Python
# 
# Name:d2l-zh
# Owner:d2l-ai
# Stars:57414
# Resitory:https://github.com/d2l-ai/d2l-zh
# Created:2017-08-23T04:40:24Z
# Updated:2024-05-20T13:06:17Z
# Description:《动手学深度学习》:面向中文读者、能运行、可讨论。中英文版被70多个国家的500多所大学用于教学。
# 
# Name:screenshot-to-code
# Owner:abi
# Stars:51407
# Resitory:https://github.com/abi/screenshot-to-code
# Created:2023-11-14T17:53:32Z
# Updated:2024-05-20T13:04:16Z
# Description:Drop in a screenshot and convert it to clean code (HTML/Tailwind/React/Vue)
# 
# Name:scrapy
# Owner:scrapy
# Stars:51177
# Resitory:https://github.com/scrapy/scrapy
# Created:2010-02-22T02:01:14Z
# Updated:2024-05-20T12:33:49Z
# Description:Scrapy, a fast high-level web crawling & scraping framework for Python.
# 
# Name:Real-Time-Voice-Cloning
# Owner:CorentinJ
# Stars:51004
# Resitory:https://github.com/CorentinJ/Real-Time-Voice-Cloning
# Created:2019-05-26T08:56:15Z
# Updated:2024-05-20T11:48:51Z
# Description:Clone a voice in 5 seconds to generate arbitrary speech in real-time
# 
# Name:gpt-engineer
# Owner:gpt-engineer-org
# Stars:50790
# Resitory:https://github.com/gpt-engineer-org/gpt-engineer
# Created:2023-04-29T12:52:15Z
# Updated:2024-05-20T12:30:08Z
# Description:Specify what you want it to build, the AI asks for clarification, and then builds it.
# 
# Name:faceswap
# Owner:deepfakes
# Stars:49464
# Resitory:https://github.com/deepfakes/faceswap
# Created:2017-12-19T09:44:13Z
# Updated:2024-05-20T12:38:10Z
# Description:Deepfakes Software For All
# 
# Name:grok-1
# Owner:xai-org
# Stars:48512
# Resitory:https://github.com/xai-org/grok-1
# Created:2024-03-17T08:53:38Z
# Updated:2024-05-20T13:01:48Z
# Description:Grok open release
# 
# Name:yolov5
# Owner:ultralytics
# Stars:47467
# Resitory:https://github.com/ultralytics/yolov5
# Created:2020-05-18T03:45:11Z
# Updated:2024-05-20T12:39:12Z
# Description:YOLOv5 🚀 in PyTorch > ONNX > CoreML > TFLite
# 
# Name:DeepFaceLab
# Owner:iperov
# Stars:45740
# Resitory:https://github.com/iperov/DeepFaceLab
# Created:2018-06-04T13:10:00Z
# Updated:2024-05-20T12:37:54Z
# Description:DeepFaceLab is the leading software for creating deepfakes.
# 
# Name:professional-programming
# Owner:charlax
# Stars:45462
# Resitory:https://github.com/charlax/professional-programming
# Created:2015-11-07T05:07:52Z
# Updated:2024-05-20T12:48:24Z
# Description:A collection of learning resources for curious software engineers
# 
# Name:hackingtool
# Owner:Z4nzu
# Stars:43007
# Resitory:https://github.com/Z4nzu/hackingtool
# Created:2020-04-11T09:21:31Z
# Updated:2024-05-20T12:51:24Z
# Description:ALL IN ONE Hacking Tool For Hackers
# 
# Name:MetaGPT
# Owner:geekan
# Stars:40070
# Resitory:https://github.com/geekan/MetaGPT
# Created:2023-06-30T09:04:55Z
# Updated:2024-05-20T12:29:43Z
# Description:🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
# 
# Name:python-patterns
# Owner:faif
# Stars:39544
# Resitory:https://github.com/faif/python-patterns
# Created:2012-06-06T21:02:35Z
# Updated:2024-05-20T11:12:15Z
# Description:A collection of design patterns/idioms in Python
# 
# Name:PaddleOCR
# Owner:PaddlePaddle
# Stars:39051
# Resitory:https://github.com/PaddlePaddle/PaddleOCR
# Created:2020-05-08T10:38:16Z
# Updated:2024-05-20T13:11:14Z
# Description:Awesome multilingual OCR toolkits based on PaddlePaddle (practical ultra lightweight OCR system, support 80+ languages recognition, provide data annotation and synthesis tools, support training and deployment among server, mobile, embedded and IoT devices)
# 
# Name:Deep-Learning-Papers-Reading-Roadmap
# Owner:floodsung
# Stars:37466
# Resitory:https://github.com/floodsung/Deep-Learning-Papers-Reading-Roadmap
# Created:2016-10-14T11:49:48Z
# Updated:2024-05-20T12:15:58Z
# Description:Deep Learning papers reading roadmap for anyone who are eager to learn this amazing tech!
# 
# Name:text-generation-webui
# Owner:oobabooga
# Stars:37072
# Resitory:https://github.com/oobabooga/text-generation-webui
# Created:2022-12-21T04:17:37Z
# Updated:2024-05-20T12:37:44Z
# Description:A Gradio web UI for Large Language Models. Supports transformers, GPTQ, AWQ, EXL2, llama.cpp (GGUF), Llama models.
# 
# Name:stablediffusion
# Owner:Stability-AI
# Stars:36612
# Resitory:https://github.com/Stability-AI/stablediffusion
# Created:2022-11-23T23:59:50Z
# Updated:2024-05-20T12:34:55Z
# Description:High-Resolution Image Synthesis with Latent Diffusion Models
# 
# Name:interview_internal_reference
# Owner:0voice
# Stars:36173
# Resitory:https://github.com/0voice/interview_internal_reference
# Created:2019-06-10T06:54:19Z
# Updated:2024-05-20T12:04:15Z
# Description:2023年最新总结,阿里,腾讯,百度,美团,头条等技术面试题目,以及答案,专家出题人分析汇总。
# 
# Name:odoo
# Owner:odoo
# Stars:35106
# Resitory:https://github.com/odoo/odoo
# Created:2014-05-13T15:38:58Z
# Updated:2024-05-20T10:30:35Z
# Description:Odoo. Open Source Apps To Grow Your Business.
# 
# Name:mitmproxy
# Owner:mitmproxy
# Stars:34607
# Resitory:https://github.com/mitmproxy/mitmproxy
# Created:2010-02-16T04:10:13Z
# Updated:2024-05-20T11:21:02Z
# Description:An interactive TLS-capable intercepting HTTP proxy for penetration testers and software developers.

        17.1.7 监视API的速率限制

浏览器地址栏输入:https://api.github.com/rate_limit
{"resources": {"core": {"limit": 60,"remaining": 59,"reset": 1716212802,"used": 1,"resource": "core"},"graphql": {"limit": 0,"remaining": 0,"reset": 1716214547,"used": 0,"resource": "graphql"},"integration_manifest": {"limit": 5000,"remaining": 5000,"reset": 1716214547,"used": 0,"resource": "integration_manifest"},"search": {"limit": 10,"remaining": 10,"reset": 1716211007,"used": 0,"resource": "search"}},"rate": {"limit": 60,"remaining": 59,"reset": 1716212802,"used": 1,"resource": "core"}
}

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.rhkb.cn/news/329891.html

如若内容造成侵权/违法违规/事实不符,请联系长河编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

每日5题Day4 - LeetCode 16 - 20

每一步向前都是向自己的梦想更近一步,坚持不懈,勇往直前! 第一题:16. 最接近的三数之和 - 力扣(LeetCode) class Solution {public int threeSumClosest(int[] nums, int target) {//别用dp了,…

docker-compose Install homer

homer前言 一个非常简单的静态主页,为您的服务器保持您的服务在手,从一个简单的yaml配置文件。 前提要求 安装 docker docker-compose 参考创建一键安装homer 脚本 homer安装位置/homerhomer 脚本位置/homer/assetshomer logo 图标/home/assets/iconshomer 端口80homer 颜色…

MySQL5个查询

# 总查询 EXPLAIN SELECT * FROM city; # 范围查询 EXPLAIN SELECT * from city where ID>5 and ID<20; #主键查询 EXPLAIN SELECT * from city where ID5; # 索引查询 EXPLAIN SELECT * from city where CountryCodeNLD; # 普通索引 EXPLAIn SELECT * from cit…

工业交换机的好处有哪些?

工业交换机是现代工业网络中不可或缺的重要组成部分&#xff0c;它扮演着连接和管理各种网络设备的关键角色。工业交换机的优点不言而喻&#xff0c;首先是其稳定可靠的性能&#xff0c;能够支撑工业环境下的高负荷工作。无论是在恶劣的温度、湿度或电磁干扰的环境下&#xff0…

springboot2.x3.x的A项目(作为sdk)集成到启动B项目调用2

一 概述 1.1 说明 本博客记录的案例&#xff0c;逻辑是&#xff1a; 项目A读取配置文件&#xff0c;并在service类的方法进行打印输出。项目A作为sdk被项目B进行依赖&#xff0c; 在项目B启动后&#xff0c;进行调用&#xff0c;并且在B进行参数的配置&#xff0c;能够覆盖…

stm32常用编写C语言基础知识,条件编译,结构体等

位操作 宏定义#define 带参数的宏定义 条件编译 下面是头文件中常见的编译语句&#xff0c;其中_LED_H可以认为是一个编译段的名字。 下面代码表示满足某个条件&#xff0c;进行包含头文件的编译&#xff0c;SYSTEM_SUPPORT_OS可能是条件&#xff0c;当非0时&#xff0c;可以…

路由引入实验(华为)

思科设备参考&#xff1a;路由引入实验&#xff08;思科&#xff09; 技术简介 路由引入技术在网络通信中起着重要的作用&#xff0c;能够实现不同路由协议之间的路由传递&#xff0c;并在路由引入时部署路由控制&#xff0c;实现路径或策略的控制 实验目的 不同的路由协议之…

工大智信智能听诊器:开启个人健康管理的全新模式

工大智信智能听诊器&#xff1a;开启个人健康管理的全新模式 在快节奏的现代生活中&#xff0c;健康管理已成为人们关注的焦点。工大智信智能听诊器&#xff0c;作为一款创新的医疗设备&#xff0c;不仅提供高级数据管理功能&#xff0c;而且成为了个人健康管理的得力助手。 这…

【FreeRTOS移植到STM32F103C8T6超详细教程-->>>基于标准库】

移植教程 FreeRTOS简介FreeRTOS 介绍FreeRTOS优点 FreeRTOS移植FreeRTOS 下载FreeRTOS目录结构移植开始Keil5打开工程修改FreeRTOSConfig.h文件修改stm32f10x_it.c 测试FreeRTOS闪烁第一颗小灯 FreeRTOS简介 FreeRTOS 介绍 FreeRTOS 是市场领先的面向微控制器和小型微处理器的…

Flutter Text导致A RenderFlex overflowed by xxx pixels on the right.

使用Row用来展示两个Text的时候页面出现如下异常,提示"A RenderFlex overflowed by xxx pixels on the right." The following assertion was thrown during layout: A RenderFlex overflowed by 4.8 pixels on the right.The relevant error-causing widget was:…

如何排查hpet导致的CPU高负载——《OceanBase诊断系列》之十

1. 前言 我在OceanBase问答社区协助用户排查了一个CPU占用率过高的问题&#xff0c;帖子原文是&#xff1a; 《刚刚新安装的OceanBase集群&#xff0c;没有任何数据&#xff0c;CPU占用非常高&#xff0c;这正常吗&#xff1f;》。从这个场景出发&#xff0c;来分享相关的诊断…

【Python自动化测试】:Unittest单元测试与HTMLTestRunner自动生成测试用例的好帮手

读者大大们好呀&#xff01;&#xff01;!☀️☀️☀️ &#x1f525; 欢迎来到我的博客 &#x1f440;期待大大的关注哦❗️❗️❗️ &#x1f680;欢迎收看我的主页文章➡️寻至善的主页 文章目录 &#x1f525;前言&#x1f680;unittest编写测试用例&#x1f680;unittest测…

智慧医疗时代:探索互联网医院开发的新篇章

在智慧医疗时代&#xff0c;互联网医院开发正引领着医疗服务的创新浪潮。通过将先进的技术与医疗服务相结合&#xff0c;互联网医院为患者和医生提供了全新的互动方式&#xff0c;极大地提升了医疗服务的便捷性和效率。本文将深入探讨互联网医院的开发&#xff0c;介绍其技术实…

巧秒用AI写作工具做影视解说文案,效率高!

在自媒体内容输出的快节奏当下&#xff0c;影视解说已经成为一种受欢迎的内容形式。然而&#xff0c;创作高质量的影视解说文案往往需要花费大量的时间和精力。随着人工智能技术的不断发展&#xff0c;AI写作工具为我们提供了一种全新的、高效的解决方案。 AI写作工具利用先进的…

电商API接口接入电商平台实现品牌价格、销量、评论数据监控

电商数据接口API在现代电商运营中扮演着至关重要的角色。它不仅能够实现品牌价格、销量、评论数据的监控&#xff0c;还能帮助商家优化销售策略&#xff0c;提升业务效率。下面将详细探讨如何通过接入电商平台的API接口来实现这些功能&#xff1a; 选择适合的电商平台 主流平台…

思科模拟器--06.单臂路由升级版--多端路由互连实验--24.5.20

实验图纸如下: 第0步: 先放置六台个人电脑,一台交换机和一台2911路由器(千兆路由器(G0开头的)) 接着,用直通线将 PC0的F0,PC1的F0分别和交换机的F0/0, F0/1连接 交换机的F0/3和路由器的G0/0连接 PC2的F0,PC3的F0分别和交换机的F0/4, F0/5连接 交换机的F0/6和路由器的G0/1…

【杂七杂八】Huawei Gt runner手表系统降级

文章目录 Step1&#xff1a;下载安装修改版华为运动与健康Step2&#xff1a;在APP里进行配置Step3&#xff1a;更新固件(时间会很长) 目前在使用用鸿蒙4 111版本的手表系统&#xff0c;但是感觉睡眠检测和运动心率检测一言难尽&#xff0c;于是想到是否能回退到以前的版本&…

Elasticsearch 分析器的高级用法二(停用词,拼音搜索)

Elasticsearch 分析器的高级用法二&#xff08;停用词&#xff0c;拼音搜索&#xff09; 停用词简介停用词分词过滤器自定义停用词分词过滤器内置分析器的停用词过滤器注意&#xff0c;有一个细节 拼音搜索安装使用相关配置 停用词 简介 停用词是指&#xff0c;在被分词后的词…

Qt案例练习(有源码)

项目源码和资源&#xff1a;Qt案例练习: qt各种小案例练习,有完整资源和完整代码 1.案例1 项目需求&#xff1a;中间为文本框&#xff0c;当点击上面的复选框和单选按钮时&#xff0c;文本框内的文本会进行相应的变化。 代码如下&#xff1a; #include "dialog.h" …

Git提交和配置命令

一、提交代码到仓库 在软件开发中&#xff0c;版本控制是一个至关重要的环节。而Git作为目前最流行的版本控制系统之一&#xff0c;为我们提供了便捷高效的代码管理和协作工具。在日常开发中&#xff0c;我们经常需要将本地代码提交到远程仓库&#xff0c;以便于团队协作和版本…