图形
lyyzmj
这个作者很懒,什么都没留下…
展开
-
蛮力法解决凸包问题(c++)
C++解决凸包问题#include<stdio.h>#include<math.h>struct Point{ int x; int y; int flag;}point[9]={ {2,3,0}, {1,7,0}, {3,-2,0}, {2,-3,0}, {5,4,0}, {5,-1,0}, {3,7,0}, {1,9,0}, {4,2,0}};void main(){ printf("点的坐标为:\n"); for(int i=0;i<原创 2020-06-27 16:27:24 · 2893 阅读 · 1 评论 -
基于python的计算器制作
简单计算器制作import tkinter as tkfrom decimal import Decimalimport mathtop=tk.Tk()top.title("我是一个计算器")top.geometry("350x400+150+150")n=0#实现单击数字对应出现在文本框中def nclick(): global n n=n+1 text=bt['text'] text1.insert(n-1,text)def n1click():原创 2020-06-27 16:05:58 · 1164 阅读 · 0 评论 -
python(turtle库)画七巧板
在python中利用小海龟画一个七巧板,考察的是turtle库的知识原创 2020-06-27 15:45:24 · 4862 阅读 · 0 评论