python学习--graphics模块安装与学习

graphics 是一个简单的面向对象的图形库, 旨在使新手程序员能够很容易地以面向对象的方式试验计算机图形。

python没有内置graphic模块,需要单独下载安装。经尝试不能通过pip下载安装,所以找到graphics源代码:点击打开链接,将代码下载保存为graphics.py文件,然后将文件放在poython库安装目录(xxx\python\Lib\site-packages)下即可。

补充:python安装目录:在dos界面命令行输入:where python,可返回本机的python的安装路径。

graphics库学习链接:点击打开链接

  • 7
    点赞
  • 17
    收藏
    觉得还不错? 一键收藏
  • 6
    评论
Use Python’s built-in features to create innovative graphics for data visualization and technical illustrations. This book goes beyond simple commands and libraries to explain how to not only display but also rotate, shade, and edit graphics for any purpose. Starting with the essential Python functions to set up a plotting space and produce 2 and 3-dimensional objects, you’ll learn how to construct more complex objects, translate and rotate them, remove hidden lines, introduce shading to add realism, and project images to visualize any dataset. The final chapter includes several worked applications in science and engineering including planetary models, which you can adapt for your own use. Written for developers who want to harness Python’s capabilities to fine-tune their images, Python Graphics covers the different commands for plotting dots, lines, arrows, or arcs, creating custom plotting grids, correcting distortions, adding text and labels to illustrations, manipulating arcs and circles, specify and use colors, and more. Armed with these techniques and core math skills, you’ll be ready to create and customize detailed technical illustrations or data visualizations. What You’ll Learn Use Python′s built-in commands for plotting, removing distortions, and rotating objects Create and edit 2D and 3D objects Develop illustrations for scientific and engineering applications Who This Book Is For Python developers looking for tips on how to create illustrations and visualizations, as well as scientists, engineers, or students using Python. It assumes familiarity with vectors, matrices, geometry and trigonometry.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 6
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值