Skip to Content
Python语言及其应用(第2版)
book

Python语言及其应用(第2版)

by Bill Lubanovic
March 2022
Intermediate to advanced
522 pages
13h 52m
Chinese
Posts & Telecom Press
Content preview from Python语言及其应用(第2版)
Python
的艺术
393
20.5.3 Bokeh
在过去的
Web
时代,开发人员会在服务器端生成图形,并提供
URL
以供
Web
浏览器访
问。近来,
JavaScript
性能获得了提升,也有了
D3
等客户端图形生成工具。本章前面
提到过一种可能性,即使用
Python
作为图形和
GUI
的前后端架构的一部分
。一款名为
Bokeh
的新工具结合了
Python
(大数据集
、易用性)和
JavaScript
(交互性、更短的图形延
迟)的优势。它的重点在于大数据集的快速可视化。
如果已经准备好了
Bokeh
的依赖环境
NumPy
Pandas
Redis
),就可以直接输入下列命
令安装了:
$
pip install bokeh
NumPy
Pandas
的用法参见第
22
。)
或者,在
Bokeh
网站上一次性全部安装
Matplotlib
运行在服务器上,而
Bokeh
主要运行
在浏览器中,并且能够利用客户端最近的技术成果。点击图库中的任意图像,可以查看交
互视图及其
Python
代码。
20.6
游戏
Python
是一个不错的游戏开发平台,以下是与之相关的图书。
Al Sweigart
所著的
Invent Your Own Computer Games with Python
Horst Jens
所著的
The Python Game Book
DocW
iki
电子书)。
一般性讨论参见
Python wiki
,其中包含更多的参考链接。
最棒的
Python
游戏平台大概就是
Pygame
。可以在
Pygame
官网下载安装程序,阅读一 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Python编程入门与实战

Python编程入门与实战

Posts & Telecom Press, Fabrizio Romano
Python实用技能学习指南

Python实用技能学习指南

Posts & Telecom Press, Robert Smallshire, Austin Bingham
Python技术基础视频教程

Python技术基础视频教程

保罗·J·戴特尔
Python面向对象编程指南

Python面向对象编程指南

Posts & Telecom Press, Steven F. Lott

Publisher Resources

ISBN: 9787115586223