1. 首页
  2. 数据库
  3. 其它
  4. python交互式图形编程实例(一)

python交互式图形编程实例(一)

上传者: 2020-12-30 19:45:20上传 PDF文件 31.68KB 热度 17次
本文实例为大家分享了python交互式图形编程的具体代码,供大家参考,具体内容如下 #!/usr/bin/env python3# -*- coding: utf-8 -*- #温度转换 from graphics import * win = GraphWin("摄氏温度转换器", 400, 300) win.setCoords(0.0, 0.0, 3.0, 4.0) # 绘制接口 Text(Point(1,3), " 摄氏温度:").draw(win) Text(Point(1,1), " 华氏温度:").draw(win) input = Entry(Point(2,3), 5) i
下载地址
用户评论