搜书网 本次搜索耗时 0.018 秒,为您找到 180 个相关结果.
  • Mac OS

    38 2025-02-03 《PX4 开发指南》
    Mac 上的开发环境 Homebrew Installation Enable more open files (Handle “LD: too many open files” error) Ensuring Python points to Homebrew Common Tools Gazebo Simulation jMAVSim Simu...
  • Mac OS

    Development Environment on Mac Homebrew Installation Enable more open files (Handle “LD: too many open files” error) Ensuring Python points to Homebrew Common Tools Gazebo Simu...
  • 断言

    断言 凡是用 print() 来辅助查看的地方,都可以用断言(assert)来替代: def foo(s): n = int(s) assert n != 0, 'n is zero!' return 10 / n def main(): foo('0') assert 的意思是,表达式...
  • 5. 在 macOS 上使用 Python

    5. 在 macOS 上使用 Python 5.1. 使用来自 python.org 的 macOS 版 Python 5.1.1. 安装步骤 5.1.2. 如何运行 Python 脚本 5.2. 其他发行版 5.3. 安装额外的 Python 包 5.4. GUI 编程 5.5. 进阶 5.5.1. 安装自由线程二进制文件 5.5.2. 使...
  • 12.2 安装Pygame

    12.2 安装Pygame 12.2 安装Pygame 开始编码前,先来安装Pygame。可使用pip 模块来帮助下载并安装Python包。要安装Pygame,在终端提示符下执行如下命令: $ python -m pip install —user pygame 这个命令让Python运行pip 模块,将pygame 包添加到当前用户的Pyt...
  • 运行单元测试

    运行单元测试 一旦编写好单元测试,我们就可以运行单元测试。最简单的运行方式是在 mydict_test.py 的最后加上两行代码: if name == 'main ': unittest.main() 这样就可以把 mydict_test.py 当做正常的python脚本运行: $ ...
  • 配置Nginx

    配置Nginx Supervisor只负责运行gunicorn,我们还需要配置Nginx。把配置文件 awesome 放到 etcnginx/sites-available/ 目录下: server { listen 80; # 监听80端口 root srvawesome/www; access_log ...
  • pdb.set_trace()

    pdb.set_trace() 这个方法也是用pdb,但是不需要单步执行,我们只需要 import pdb ,然后,在可能出错的地方放一个 pdb.set_trace() ,就可以设置一个断点: # err.py import pdb s = '0' n = int(s) pdb.set_trace() ...
  • 15.1 安装Matplotlib

    15.1 安装Matplotlib 15.1 安装Matplotlib 本章将首先使用Matplotlib来生成几个图表,为此需要使用pip 来安装它。pip 是一个可用于下载并安装Python包的模块。请在终端提示符下执行如下命令: $ python -m pip install —user matplotlib 这个命令让Python运行...
  • Linux Build Prerequisites

    environment set up and ready to hack on Thunderbird. Linux Build Prerequisites Hardware Requirements 64-bit version 30 GB of free space Build Environment Python Mercurial Ubun...