~/.vimrc内容如下: set nocompatible filetype off set rtp+=~/.vim/bundle/Vundle.vim call vundle#begin() Plugin 'VundleVim/Vundle.vim' Plugin 'tpope/vim-fugi ...
分类:
系统相关 时间:
2020-07-18 13:52:57
阅读次数:
109
动动手 0. 先练练手,把我们的刚开始的那个猜数字小游戏加上界面吧? 1 import random 2 import easygui as g 3 4 g.msgbox("嗨,欢迎进入第一个界面小游戏^_^") 5 secret = random.randint(1,10) 6 7 msg = " ...
分类:
其他好文 时间:
2020-07-18 13:38:23
阅读次数:
157
原题目: Debug celsius converter Your friend is traveling abroad to the United States so he wrote a program to convert fahrenheit to celsius. Unfortunatel ...
分类:
其他好文 时间:
2020-07-18 11:23:22
阅读次数:
62
外部系统传入SAP的单位用的中文,需要切换为SAP内部格式的单位 调用函数:CONVERSION_EXIT_CUNIT_INPUT 1 CALL FUNCTION 'CONVERSION_EXIT_CUNIT_INPUT' 2 EXPORTING 3 input = ls_data-meins 4 ...
分类:
其他好文 时间:
2020-07-17 14:06:40
阅读次数:
89
一、可迭代对象(iterable) 我们知道,在Python世界里,一切皆对象。对象根据定义的维度,又可以分为各种不同的类型,比如:文件对象,字符串对象,列表对象。。。等等。 那什么对象才能叫做可迭代对象呢?一句话:“实现了__inter__方法的对象就叫做可迭代对象”,__inter__方法的作用 ...
分类:
其他好文 时间:
2020-07-16 21:14:16
阅读次数:
52
kubernet 1、关闭swapswapoff -a/etc/fstab 注释swap分区 2、将桥接的IPv4流量传递到iptables的链cat > /etc/sysctl.d/k8s.conf <<EOFnet.bridge.bridge-nf-call-ip6tables = 1net.b ...
分类:
Web程序 时间:
2020-07-16 00:11:48
阅读次数:
120
详解JS中定时器setInterval和setTImeout的this指向问题 ...
分类:
Web程序 时间:
2020-07-15 23:21:21
阅读次数:
83
实现Callable接口(了解即可) 实现Callable接口,需要返回值类型 重写call方法,需要抛出异常 创建目标对象 创建执行服务:ExecutorService ser = Executors.newFixedThreadPool(1); 提交执行:Future result1 = ser ...
分类:
其他好文 时间:
2020-07-15 16:04:16
阅读次数:
124
1:所有的发布订阅就是一个对象。 class Obersve { event={} //等价于下面的constructor // constructor() { // this.event = {} // } subscribe(type, fn) { //订阅 if (Object.keys(th ...
分类:
其他好文 时间:
2020-07-15 15:47:31
阅读次数:
68
在使用YOLO v5进行自己数据集的训练的时候(python3 train.py),报了如下的错误: Traceback (most recent call last): File "train.py", line 402, in <module> tb_writer = SummaryWriter ...