var Book = {} var name = ''; Object.defineProperty(Book, 'name', { set: function (value) { name = value; console.log('你取了一个书名叫做' + value); }, get: fun ...
分类:
其他好文 时间:
2021-04-14 11:55:37
阅读次数:
0
#!/usr/bin/env python3#!-*- coding:UTF-8 -*- import osclass GetPath():# 获取所有目录 @staticmethod def get_dir(path): print("打印所有目录:") for root, dirs, files ...
分类:
编程语言 时间:
2021-04-14 11:51:07
阅读次数:
0
转:http://paper.sciencenet.cn/htmlpaper/2021/4/202141123542661662565.shtm 美国洛克菲勒大学Luciano A. Marraffini、Charlie Y. Mo等研究人员合作发现,III-A型CRISPR免疫促进葡萄球菌突变。 ...
分类:
其他好文 时间:
2021-04-14 11:50:12
阅读次数:
0
Map<String,BaseResultMessage> brmMap = new HashMap<>(); long beginTimeSum = System.currentTimeMillis(); for(StkInventoryWlTypeEnum emum:StkInventoryWl ...
分类:
编程语言 时间:
2021-04-13 12:56:07
阅读次数:
0
记录一下java实现文件的上传、下载、删除的功能demo; /** * Controller */ @Slf4j @RestController @RequestMapping public class FileController { @Resource IFileService fileServ ...
分类:
编程语言 时间:
2021-04-13 12:53:13
阅读次数:
0
给你一个二叉搜索树的根节点 root ,返回 树中任意两不同节点值之间的最小差值 。 https://leetcode-cn.com/problems/minimum-distance-between-bst-nodes/ /** * Definition for a binary tree nod ...
分类:
其他好文 时间:
2021-04-13 12:43:51
阅读次数:
0
类/装饰器 @property装饰器负责把类中的方法转换成属性来调用 有三种调用方法 方法一:@property直接加在需要转换的方法上 class People: def __init__(self, name, weight, height): self.__name = name self.w ...
分类:
其他好文 时间:
2021-04-13 12:41:12
阅读次数:
0
信号介绍 SIGKILL 9 exit信号,是不会被阻塞的,不能被忽略;杀死进程的终极办法SIGSTOP 停止,并不消灭进程 SIGINT 2 Ctrl + C时OS送给前台进程组中每个进程, 默认处理的时候会调用exit终止程序SIGQUIT 3 默认处理动作是终止进程并且Core DumpSIG ...
分类:
系统相关 时间:
2021-04-13 12:31:37
阅读次数:
0
from flask import Flask from flask_restful import Api,Resource app = Flask(__name__) api = Api(app) class HelloWorld(Resource): def get(self): return ...
分类:
其他好文 时间:
2021-04-13 12:26:40
阅读次数:
0
在用 ant-designer 的 select 时候,有时候会发生下拉框没跟着页面滚动,这怎么办? ...
分类:
其他好文 时间:
2021-04-13 12:18:53
阅读次数:
0