1. Python 安装和设置环境变量之后报错 zsh: killed python3 解决:MAC M1系统只支持python 3.9, 不支持3.6 和3.7 安装命令: 先安装brew : /bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/H ...
分类:
编程语言 时间:
2021-06-06 18:47:01
阅读次数:
0
ctypes 是 Python 的外部函数库。它提供了与 C 兼容的数据类型,并允许调用 DLL 或共享库中的函数。可使用该模块以纯 Python 形式对这些库进行封装。 ctypes.byref(obj[, offset])--传递引用数据 返回指向 obj 的轻量指针,该对象必须为一个 ctyp ...
分类:
编程语言 时间:
2021-06-06 18:44:39
阅读次数:
0
集成 Swagger 管理 API 文档 1)项目中集成 Swagger 集成 Swagger 我们使用封装好了的 Starter 包,代码如下所示。 <!-- Swagger --><dependency> <groupId>com.spring4all</groupId> <artifactId ...
分类:
编程语言 时间:
2021-06-05 18:35:34
阅读次数:
0
1,拉取镜像 docker pull nacos/nacos-server:1.3.2 docker images | grep nacos-server 2,运行容器 docker run --name nacos-server -e MODE=standalone -e MYSQL_SERVIC ...
分类:
数据库 时间:
2021-06-05 18:34:43
阅读次数:
0
这个例子的完整源代码: import { Component, OnInit, Injectable, Injector } from '@angular/core'; @Injectable() class UsefulService { constructor(){ console.log("U ...
## 1.创建数据持久化文件夹 sudo mkdir -p /opt/mssql/data/ #开启目录权限 sudo chmod a+rwx /opt/mssql/data/ #开启docker挂载权限 sudo chmod a+rw /var/run/docker.sock ## 2.拉取最新 ...
分类:
数据库 时间:
2021-06-05 18:34:12
阅读次数:
0
看到一篇文章,介绍了一个用Python实现的python字节码解释器: https://www.aosabook.org/en/500L/a-python-interpreter-written-in-python.html 这是源码: https://github.com/nedbat/byter ...
分类:
编程语言 时间:
2021-06-05 18:30:44
阅读次数:
0
docker删除镜像报错处理,Error response from daemon: conflict: unable to delete a945e7fd5401 (cannot be forced) - image has dependent child images ,删除为none的镜像 ...
分类:
其他好文 时间:
2021-06-05 18:28:16
阅读次数:
0
##一、API ###概述 ##二、Scanner类 ###1、什么是Scanner类 ###2、Scanner使用步骤 ###3、匿名对象 ####概念 ####应用场景 ##三、Random类 ###1、什么是Random类 ###2、Random类使用步骤 ####注意 nexInt(n)范围 ...
分类:
编程语言 时间:
2021-06-05 18:13:15
阅读次数:
0
哥德巴赫猜想:大于8的偶数之和都可以被两个素数相加 范围 8 - 10000 思路: 首先不要去管需要什么什么东西实现,所以我们如果知道如何去完成: 大于8的偶数之和都可以被两个素数相加: # 可以假设 这个猜想是正确的。 # 设一个变量是true flag = True # 确定范围 8 - 10 ...
分类:
编程语言 时间:
2021-06-05 18:11:06
阅读次数:
0