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

news2024/11/16 18:10:50

# 昨日知识点回顾

        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.coloradmin.cn/o/1705713.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

Java语言ADR药物不良反应系统源码Java+IntelliJ+IDEA+MySQL一款先进的药物警戒系统

Java语言ADR药物不良反应系统源码JavaIntelliJIDEAMySQL一款先进的药物警戒系统源码 ADR药物不良反应监测系统是一个综合性的监测平台,旨在收集、报告、分析和评价药品在使用过程中可能出现的不良反应,以确保药品的安全性和有效性。 以下是对该系统的详细…

【职业教育培训机构小程序】教培机构“招生+教学”有效解决方案

教培机构“招生教学”有效解决方案在数字化转型的浪潮中,职业教育培训机构面临着提升教学效率、拓宽招生渠道、增强学员互动等多重挑战。小程序作为一种新兴的移动应用平台,为解决这些痛点提供了有效途径。 一、职业教育培训机构小程序的核心功能 &…

当传统文化遇上数字化,等级保护测评的必要性

第二十届中国(深圳)国际文化产业博览交易会5月23日在深圳开幕。本届文博会以创办20年为契机,加大创新力度,加快转型升级,着力提升国际化、市场化、专业化和数字化水平,不断强化交易功能,打造富有…

[数据集][目标检测]RSNA肺炎检测数据集VOC+YOLO格式6012张1类别

数据集格式:Pascal VOC格式YOLO格式(不包含分割路径的txt文件,仅仅包含jpg图片以及对应的VOC格式xml文件和yolo格式txt文件) 图片数量(jpg文件个数):6012 标注数量(xml文件个数):6012 标注数量(txt文件个数):6012 标注…

[集群聊天服务器]----(十一) 使用Redis实现发布订阅功能

接着上文,[集群聊天服务器]----(十)Nginx的tcp负载均衡配置–附带截图,我们配置nginx,使用了多台服务端来提高单机的并发量,接下来我们回到项目中,思考一下,各个服务端之间怎么进行通信呢? 配置…

专业145+总410+成电电子科技大学858信号与系统考研经验电子信息与通信工程,抗干扰,空天,资环,真题,大纲,参考书。

今年考研总分410,专业课858信号与系统145,顺利上岸成电,毕设已经搞得七七八八,就等毕业了,抽空整理回顾一下去年的复习,给群里的同学提供一些参加,少走弯路,对于整体复习的把握有个大概得规划。…

Unity 之 Android 【获取设备的序列号 (Serial Number)/Android_ID】功能的简单封装

Unity 之 Android 【获取设备的序列号 (Serial Number)/Android_ID】功能的简单封装 目录 Unity 之 Android 【获取设备的序列号 (Serial Number)/Android_ID】功能的简单封装 一、简单介绍 二、获取设备的序列号 (Serial Number) 实现原理 1、Android 2、 Unity 三、注意…

notepad++ 模糊替换规则

AUTO_INCREMENT\d AUTO_INCREMENT0 ALTER TABLE .* AUTO_INCREMENT0;

计算机网络——在地址栏输入网址(URL)之后都发生了什么

网址,也叫域名,域名就像一个 IP 地址的可读版本,比如,百度的域名 www.baidu.com,他的 ip 是 110.242.68.3,输入 IP 一样可以跳转到百度搜索的页面,我想没有一个人没去记百度的 IP 吧。其实我们真…

Docker 快速更改容器的重启策略(Restart Policies)以及重启策略详解

目录 1. 使用 docker update 命令2. 在启动容器时指定重启策略3. 在 Docker Compose 文件中指定重启策略4. 总结 官方文档:Start containers automatically 1. 使用 docker update 命令 Docker 提供了 docker update 命令,可以在容器运行时更改其重启策…

Audition 2024 for Mac/Win:音频录制与编辑的卓越之选

随着数字媒体的不断发展,音频内容创作已经成为各行各业中不可或缺的一部分。无论是音乐制作、广播节目、播客录制还是影视配音,都需要高品质的音频录制和编辑工具来实现专业水准的作品。在这个充满竞争的时代,要想在音频创作领域脱颖而出&…

JAVASE总结一

1、 2、引用也可以是成员变量(实例变量),也可以是局部变量;引用数据类型,引用, 我们是通过引用去访问JVM堆内存当中的java对象,引用保存了java对象的内存地址,指向了JVM堆内存当中…

java项目启动报错

java项目启动报错:java: java.lang.NoSuchFieldError: Class com.sun.tools.javac.tree.JCTree$JCImport does not have member field ‘com.sun.tools.javac.tree.JCTree qualid’ 原因:编译和运行的版本不一样 点击idea文件 点击项目结构 把这两个版本…

埃及媒体分发投放-新闻媒体通稿发布

埃及商业新闻 大舍传媒近日宣布将在埃及商业新闻领域展开新的媒体分发投放。作为埃及最具影响力的商业新闻平台之一,埃及商业新闻将为大舍传媒提供广阔的市场和受众群体。这一合作意味着大舍传媒将有机会通过埃及商业新闻的平台向埃及的商业精英和投资者传递最新的…

记录一次安装k8s初始化失败

实例化 kubeadm init --configkubeadm.yaml --ignore-preflight-errorsSystemVerification报错 [init] Using Kubernetes version: v1.25.0 [preflight] Running pre-flight checks error execution phase preflight: [preflight] Some fatal errors occurred:[ERROR CRI]: co…

引领智能校对行业的革新者:爱校对

我们很高兴向大家介绍爱校对,这是交互未来(北京)科技有限公司推出的一款前沿智能校对产品。爱校对的诞生,源自清华大学计算机智能人机交互实验室,结合了最先进的技术与理念,旨在为用户提供高效、精准的智能…

【Chapter5】死锁与饥饿,计算机操作系统教程,第四版,左万利,王英

文章目录 1.1 什么是死锁1.2 死锁的类型1.2.1 竞争资源引起的死锁1.2.2 进程间通信引起的死锁1.2.3 其他原因引起的死锁 1.3 死锁产生必要条件1.4 死锁的处理策略1.5 死锁的预防1.5.1 破坏资源独占条件1.5.2 破坏不可剥夺条件1.5.3 破坏保持申请条件1.5.4 破坏循环等待条件 1.6…

R可视化:另类的箱线图

介绍 方格状态的箱线图 加载R包 knitr::opts_chunk$set(echo TRUE, message FALSE, warning FALSE) library(patternplot) library(png) library(ggplot2) library(gridExtra)rm(list ls()) options(stringsAsFactors F)导入数据 data <- read.csv(system.file(&qu…

记一次Chanakya靶机的渗透测试

Chanakya靶机渗透测试 首先通过主机发现发现到靶机的IP地址为:172.16.10.141 然后使用nmap工具对其进行扫描:nmap -sC -sV -sS -p- 172.16.10.141 发现目标靶机开启了80,22,21等多个端口&#xff0c; 访问80端口,发现是一个普通的页面,点击进入多个界面也没有其他有用的信息,然…

PaliGemma – 谷歌的最新开源视觉语言模型(一)

引言 PaliGemma 是谷歌推出的一款全新视觉语言模型。该模型能够处理图像和文本输入并生成文本输出。谷歌团队发布了三种类型的模型&#xff1a;预训练&#xff08;PT&#xff09;模型、混合&#xff08;Mix&#xff09;模型和微调&#xff08;FT&#xff09;模型&#xff0c;每…