【问题标题】:What does an 'API' mean in a programming language like Python and a platform like Tensorflow? [duplicate]在 Python 这样的编程语言和 Tensorflow 这样的平台中,“API”是什么意思? [复制]
【发布时间】:2021-06-17 04:54:45
【问题描述】:

当我开始学习数据分析时,我学习了 API,因为它可以从数据库中检索小块数据(如 twitter api)。现在我看到在 Python 和 Tensorflow 等开发语言中提到了“API”。

API 在编程语言和平台中意味着什么?

【问题讨论】:

  • API => 应用程序编程接口
  • API 只是您的程序和其他东西之间的抽象层。其他东西可能是服务器/服务,或者硬件,像 DirectX 或 OpenGL 这样的“图形 API”,甚至是操作系统本身(例如 Windows API)。

标签: python api tensorflow


【解决方案1】:

基本上,Api 是一组工具和函数,目的是让您的代码与其他服务一起做某事。例如,discord api 让您可以在 java 脚本中创建一个聊天机器人。 API 基本上可以在所有编程语言中找到。一个更好的 api 示例:

var dis = require("picture-manager-api")

mypic = dis.upload("picture.png")

//your picture is now on the  picture management service thanks to this api.

【讨论】:

    猜你喜欢
    • 2014-02-01
    • 1970-01-01
    • 2011-04-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-01-03
    • 2017-05-18
    • 1970-01-01
    相关资源
    最近更新 更多