« Search  |  Retro Site View (Experimental)  |  Switch to Reader Mode Images: 56K  |  Retro Mode: ON  |  Original Site »
GitHub   (github.com · converted in 671 ms)
Sections: Homepage  |  Actions CI/CD and automation  |  All Features  |  Documentation  |  Training  |  Certifications  |  Build with Copilot  |  Customize Copilot  |  Integrations  |  Trending repos  |  GitHub Sponsors  |  Developer articles  |  Enterprises  |  Small and medium teams  |  Startups  |  Nonprofits

APIJSON/APIJSON-Python at master · loopwang/APIJSON

APIJSON-Python


Directory actions


More options


Directory actions


More options


Latest commit


History


History
View commit history for this file.

APIJSON-Python


Folders and files


Name Name Last commit message Last commit date

parent directory

..
README.md README.md
test.py test.py

README.md


APIJSON测试 - Python


Permalink: APIJSON测试 - Python

1.下载后解压APIJSON工程

Permalink: 1.下载后解压APIJSON工程

打开APIJSON的GitHub主页 > Clone or download > Download ZIP > 解压到一个路径并记住这个路径。


2.运行Python脚本

Permalink: 2.运行Python脚本

Windows

Permalink: Windows

假设解压路径为 D:\Downloads

打开 CMD命令行窗口
cd D:\Downloads\APIJSON-master\APIJSON-Python
python test.py

如果失败,一般是因为 "python 不是内部或外部命令",则执行:
set PATH=%PATH%;C:\Python27
其中,Python27对应2.7版,如果是其它版本请修改下数字,例如3.6版就改为Python36。

然后重新执行:
python test.py

Linux 或 Mac OS

Permalink: Linux 或 Mac OS

假设解压路径为 /Users/Tommy/Downloads

打开 Terminal终端窗口,然后分别执行:
cd /Users/Tommy/Downloads/APIJSON-master/APIJSON-Python
python test.py


3.测试接口

Permalink: 3.测试接口

看 命令行控制台。
如果默认url不可用,修改为一个可用的,比如正在运行APIJSON后端工程的电脑的IPV4地址,然后重新运行。