摘要: ``` import cv2 import numpy as np import math img = np.zeros((400, 400, 3), np.uint8) points = [] base = (200, 200) start_angle = 40 x = 120 y =35 #a*math.sin(36/180.0*math.pi)==b*math.sin(18/180.0*... 阅读全文
posted @ 2018-01-19 18:06 以我之丿名 阅读(1279) 评论(1) 推荐(0) 编辑
摘要: 代码 其实很简单,关键是桢数,也就 delay的时间 数,10,50都不行,然后试了30可以了 但是现在有个问题就是偶尔无法放出技能 不知道为什么 了, 不知道 是出了什么 问题 阅读全文
posted @ 2017-07-24 22:02 以我之丿名 阅读(288) 评论(0) 推荐(0) 编辑
摘要: 系统 环境 ubuntu14.04 注意事项 1. 安装supervisor不要使用apt,要用pip安装,因为apt安装的supervisor是3.0版本,而pip安装的是3.2或者更新,3.0版本restart 的时候有可能会卡死 阅读全文
posted @ 2017-07-10 12:42 以我之丿名 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 关键是2点 1. 添加 python的shellbang 2. 添加 python的路径为绝对路径 例子: 阅读全文
posted @ 2017-07-10 12:33 以我之丿名 阅读(2929) 评论(0) 推荐(0) 编辑
摘要: class TreeNode: parent,leftChild,rightChild,data=None,None,None,0 def __init__(self,data): self.parent,self.leftChild,self.rightChild,self.data=None,None,None,dataclass BinaryTree: root=None def __init__(self,data): self.root=TreeNode(data) def insertValue(self,beginNode... 阅读全文
posted @ 2014-03-24 10:26 以我之丿名 阅读(334) 评论(0) 推荐(0) 编辑