摘要:
with open(mpath, "w") as f: yaml.safe_dump(yaml_dict,f,encoding='utf-8', allow_unicode=True) 阅读全文
摘要:
with open(mpath,"w") as k: dlist=[] for key in yaml_dict["data"]: dlist.append(yaml_dict["data"][key]) print(dlist) yaml_dict["data"]... 阅读全文
摘要:
public class Numeric { public static void main(String[] args) { String string = "-1234.15"; boolean numeric = true; numeric = string.matches("-?\\d+(\\.\\d+)?"); ... 阅读全文
摘要:
屏幕划线,通过平面坐标系实现,基本组成是一个一个的点,起点为A,终点为B 本文的算法,可以实现平面栅格中,指定的A,B两点之间进行连线(代码中仅打印了两点间需要画出的坐标点) 阅读全文
摘要:
pip install PyDispatcher 阅读全文
摘要:
pip install PyVRML97 阅读全文
摘要:
安装环境:win10 64位操作系统,python3.7 一.安装py库 需要用pip 安装 可能会报错, 是因为没有安装对应的c++库 打开网站https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyopengl 找到pyopengl 下载对应的版本,我的是py 阅读全文