翻译自:Nicklas Millard的文章《Better Software Without If-Else》, 参考:https://medium.com/swlh/5-ways-to-replace-if-else-statements-857c0ff19357 设计更好的软件,替换If-Els ...
分类:
其他好文 时间:
2020-07-30 10:52:27
阅读次数:
91
1 # #!/usr/bin/python3 2 # -*- coding: utf-8 -*- 3 # @Time : 2020/7/30 9:07 4 # @Author : Gengwu 5 # @FileName: Keys_Option.py 6 # @Software: PyCharm ...
分类:
编程语言 时间:
2020-07-30 10:48:30
阅读次数:
124
安装JDK linux的opt目录下创建文件夹module和software fileZilla上传压缩包到software目录下 查看是否已经安装jdkrpm -qa | grep java,卸载rpm -e --nodeps 加你要卸载的对象的名字 解压安装包到module目录下:tar -zx ...
分类:
系统相关 时间:
2020-07-29 21:51:45
阅读次数:
92
通过文件夹导入包要求每个目录下都有一个__init__.py文件,此文件可空白。也可不空。 a@ubuntu:~/Desktop$ tree myp myp ├── a │ ├── b.py │ └── __init__.py └── __init__.py 1 directory, 3 files ...
分类:
编程语言 时间:
2020-07-29 21:41:32
阅读次数:
70
#Time : 2020/7/29 19:59 #FileName: xml_test.py #Email : 945784220@qq.com #Software: PyCharm #Blog:https://www.cnblogs.com/BBS2013/ # import xml.etree. ...
分类:
其他好文 时间:
2020-07-29 21:31:37
阅读次数:
72
本文只是解决安装ubuntu安装中遇到的一般卡死问题,一些详细的安装过程可以参考其他博客 1.制作启动盘(可以用rufus,非常方便) 2.系统分配空间,ctrl + X, 进入磁盘管理,点击想要磁盘进行压缩卷,大约100G为好。 2.重启电脑,快速按F2进入BIOS界面模式,选择Boot,将Fas ...
分类:
系统相关 时间:
2020-07-29 21:21:42
阅读次数:
100
更新包索引 apt update 安装开发工具包 apt install build-essential 查看gcc是否安装成功 gcc --version 编写hello world vim hello.c #include <stdio.h> int main() { printf("Hello ...
分类:
系统相关 时间:
2020-07-29 15:07:04
阅读次数:
61
由于AI_Station 是使用容器构建环境的,而且只提供镜像上传下载功能,不为容易提供网络功能,因此需要在平台上把镜像拉取到本地,并安装一些必备软件然后再打包成镜像上传回去,因此需要在本地构建docker环境,于是如下: 安装GPG证书 curl -fsSL http://mirrors.aliy ...
分类:
系统相关 时间:
2020-07-29 14:53:30
阅读次数:
151
一、创建标签 在Git中打标签非常简单,首先,切换到需要打标签的分支上: 1 $ git branch 2 * dev 3 master 4 $ git checkout master 5 Switched to branch 'master' 然后,敲命令git tag <name>就可以打一个新 ...
分类:
其他好文 时间:
2020-07-29 14:46:18
阅读次数:
77
config 配置 1 # -*- coding = utf-8 -*- 2 # @Time : 2020/7/28 17:51 3 # @Author : 贾伟文 4 # @File : config.py 5 # @Software : PyCharm 6 7 DB_URI = 'mysql:/ ...
分类:
其他好文 时间:
2020-07-29 10:28:10
阅读次数:
67