function jsons($code, $message = '', $data = array()) { if(!is_numeric($code)) { return ''; } $result = array( 'code' => $code, 'message' => urlencode ...
分类:
Web程序 时间:
2021-06-13 09:22:24
阅读次数:
0
# 1 安装 pip install coreapi # 2 在路由中配置 from rest_framework.documentation import include_docs_urls urlpatterns = [ ... path('docs/', include_docs_urls(t ...
分类:
其他好文 时间:
2021-06-13 09:22:11
阅读次数:
0
import turtle turtle.setup(800,600) turtle.pencolor('pink') for i in range(4): for i in range(2): turtle.circle(80,90) turtle.left(90) turtle.right(90 ...
分类:
编程语言 时间:
2021-06-13 09:20:06
阅读次数:
0
from turtle import * def square(size = 50, rgb = 'orange'): pencolor(rgb) for i in range(4): fd(size) left(90) def main(): setup(800, 600) speed(0) fo ...
分类:
其他好文 时间:
2021-06-13 09:19:11
阅读次数:
0
package { import flash.display.MovieClip; import flash.html.HTMLLoader; import flash.net.URLRequest; import fl.core.UIComponent; import flash.display. ...
分类:
Web程序 时间:
2021-06-11 19:15:57
阅读次数:
0
首先创建文件夹 mkdir mockData&&cd mockData 安装http-server npm i http-server 创建数据文件 touch index.json 在index.json 里输入 { "ret": "0", "code": 0, "msg": "", "data" ...
分类:
Web程序 时间:
2021-06-11 19:08:38
阅读次数:
0
proto编译引用外部包问题 在test.proto文件中引用了一个外部包: import "google/api/annotations.proto"; 当使用命令编译的时候提示找不到包: # protoc --go_out=plugins=grpc:. ./test.proto google/a ...
分类:
其他好文 时间:
2021-06-11 19:07:29
阅读次数:
0
#python之模块py_compile用法(将py文件转换为pyc文件);二进制文件,是由py文件经过编译后,生成的文件. #办法一: import py_compile #加r前缀进行转义 py_compile.compile(r'D:\test.py')#py文件完整的路径. 办法二: #cm ...
分类:
编程语言 时间:
2021-06-11 19:06:54
阅读次数:
0
yaml文件读取: def read_yaml(): with open("config.yaml", encoding='utf-8') as f: data = yaml.load(f.read(), Loader=yaml.FullLoader) print(data) ...
分类:
编程语言 时间:
2021-06-11 18:50:54
阅读次数:
0
v-model:双数据绑定 <template> <div id="app"> <input type="text" v-model="name"> <p>{{name}}</p> </div> </template> <script> export default { data() { retur ...
分类:
其他好文 时间:
2021-06-11 18:49:57
阅读次数:
0