先看一个初始化带头结点单链表的例子,LNode是结点变量,LinkList是结点指针变量,等同于LNode* typedef struct LNode{ // 定义单链表节点类型 int data; struct LNode *next; }LNode,*LinkList; 例1、错误的方法:初始化 ...
分类:
编程语言 时间:
2021-04-06 14:42:55
阅读次数:
0
1:传值 隔代传值通过v-bind = “$attrs”. 2:传方法 v-on=“$listeners” 就可以在子组件调用父组件的方法 ,this.$emit("methodsFromParent") 3:子传父 slot 孩子: <slot name="aa" :foo="'foooooooo ...
分类:
其他好文 时间:
2021-04-06 14:17:01
阅读次数:
0
前言 有时需要加密保存数据,但是我不会用AES……所以选择了更简单的异或加密。 解决方案 public static String xor(String data, String password) { //异或加密 byte b1[] = data.getBytes(); byte b2[] = ...
分类:
编程语言 时间:
2021-04-06 14:14:59
阅读次数:
0
本文主要介绍了vue前端打包和docker部署相关内容,到目前为止,crudapi-admin-web代码已经完成,后续会继续优化代码,文档也会持续更新。每一篇文章对应的代码,都打上了tag,命名规则为t1,t2..., 欢迎下载代码学习和交流。 ...
Contextual Inquiry and Analysis Methodology—— 背景研究 & 分析方法 1、Some usability Methods Contextual inquiry Contextual Analysis (Design) Paper prototype 【原型 ...
分类:
其他好文 时间:
2021-04-05 12:46:46
阅读次数:
0
1 重写 authenticate 函数 目的是取代自带的登录校验方式 from django.contrib.auth.backends import ModelBackend, UserModel from . import models class CustomBackend(ModelBac ...
分类:
其他好文 时间:
2021-04-05 12:37:18
阅读次数:
0
声明:图片及内容基于:https://www.bilibili.com/video/BV16C4y1H7Zc?from=articleDetail 最短路径 Dijkstra算法 原理 数据结构 核心代码 findMinDist() int MGraph::findMinDist(){ int le ...
分类:
编程语言 时间:
2021-04-05 12:28:03
阅读次数:
0
需求 要求可以读取音频文档,有播放和暂停的功能 附上代码(1)UI界面 # -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'UiForm.ui' # # Created by: PyQt5 UI ...
分类:
其他好文 时间:
2021-04-05 12:22:49
阅读次数:
0
Django的视图 简单的视图 我们将在 myapp 创建一个简单的视图显示: "welcome to yiibai !" 查看如下的视图 ? from django.http import HttpResponse def hello(request): text = """<h1>welcome ...
分类:
其他好文 时间:
2021-04-05 12:18:07
阅读次数:
0
task1 print("hey,u")print("hey","u")x=1y=2z=3print(x,y,z)print("x=%d,y=%d,z=%d"%(x,y,z))print("x={},y={},z={}".format(x,y,z))print(f"x={x},y={y},z={z} ...
分类:
其他好文 时间:
2021-04-05 12:13:30
阅读次数:
0