Python
惡,善
这个作者很懒,什么都没留下…
展开
-
Python动态演示分治法解决凸包问题
from threading import Threadimport matplotlib.pyplot as pltfrom matplotlib.widgets import Buttonimport random# 生成所有的点all = []def all_points(): n = int(input("生成的随机点数量:")) while len(all) < n: x = random.randint(0, 250) y = rand原创 2020-05-25 20:43:30 · 905 阅读 · 0 评论 -
Python输出乘法口诀
for x in range(1,10): for y in range(1,x+1): print("{0}*{1}={2}".format(x,y,x*y),end=' ') print()原创 2020-03-26 11:43:10 · 218 阅读 · 0 评论