有这样一道智力题:“某商店规定:三个空汽水瓶可以换一瓶汽水。小张手上有十个空汽水瓶,她最多可以换多少瓶汽水喝?”答案是5瓶,方法如下:先用9个空瓶子换3瓶汽水,喝掉3瓶满的,喝完以后4个空瓶子,用3个再换一瓶,喝掉这瓶满的,这时候剩2个空瓶子。然后你让老板先借给你一瓶汽水,喝掉这瓶满的,喝完以后用3 ...
分类:
其他好文 时间:
2020-03-14 14:30:57
阅读次数:
61
在有界面的应用程序中开启控制台调试窗口非常有用,尤其是在调试多线程应用程序中,由于通过断点的方式调试程序时会导致线程挂起从而导致各种难于预料的结果。这时候就可以通过开启控制台窗口往窗口输出信息来查看线程的运行情况,这比通过日志文件输出的方式更方便和实时。 下面介绍四种开启控制台窗口的方法: 通过Al ...
分类:
其他好文 时间:
2020-03-14 11:13:30
阅读次数:
53
一、背景 需要学习mxnet,建一个conda虚拟软件环境。 二、步骤 1、下载anaconda安装文件:https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/ wget https://mirrors.tuna.tsinghua.edu.c ...
分类:
其他好文 时间:
2020-03-14 00:40:31
阅读次数:
137
预览 字体 字体使用jetbrains的mono, "前往下载" ;可在 中搜索 进行启用 字体 主题 主题推荐使用 "Material Theme UI" , "前往下载" ;安装完成之后可在phpstorm的顶部导航栏选择 ,进行个性化设置 ...
分类:
Web程序 时间:
2020-03-13 12:43:41
阅读次数:
108
题目描述 在一个排序的链表中,存在重复的结点,请删除该链表中重复的结点,重复的结点不保留。 例如,链表1->2->3->3->4->4->5 处理后为 1->2->5 参考:https://blog.csdn.net/gangstudyit/article/details/80623477 1 #i ...
分类:
其他好文 时间:
2020-03-12 14:38:59
阅读次数:
58
配置 # Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. # # This program is free software; you can redistribute it and/or modify # ...
分类:
数据库 时间:
2020-03-12 12:52:38
阅读次数:
77
对于Vue内部来说,不管是根组件还是子组件,都存在this.$router和this.$route两个属性,它们的区别如下: $router 指向当前的VueRouter实例,也就是new Vue({router:router})这里传入的router实例对象,可以使用上一节里列出的VueRoute ...
分类:
其他好文 时间:
2020-03-12 10:03:08
阅读次数:
162
conda更换下载源 1.conda源更换为清华 conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ conda config --set show_channel_urls yes ...
分类:
其他好文 时间:
2020-03-11 15:26:39
阅读次数:
669
pytorch和torchvision下载失败,主要是anaconda延迟过高导致 增加国内镜像源来安装 conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ conda config ...
分类:
Web程序 时间:
2020-03-10 09:12:32
阅读次数:
77
conda install的情况下,可以在anaconda p'rompt中输入 conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ conda config --add chann ...
分类:
编程语言 时间:
2020-03-09 10:30:53
阅读次数:
162