This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"lastUpload":"2019-11-25T08:57:40.871Z","extensionVersion":"v3.4.3"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 1、安装工具 | |
```bash | |
PS E:\Flask> pip install flask-sqlacodegen | |
Collecting flask-sqlacodegen | |
Downloading https://files.pythonhosted.org/packages/3b/2a/e47611e4fec19e33af5fc90dd57ec2b064056f6c433804742d66e80b2f57/flask_sqlacodegen-1.1.6.1-py2.py3-none-any.whl | |
Collecting inflect>=0.2.0 (from flask-sqlacodegen) | |
Downloading https://files.pythonhosted.org/packages/86/02/e6b11020a9c37d25b4767a1d0af5835629f6e75d6f51553ad07a4c73dc31/inflect-2.1.0-py2.py3-none-any.whl (40kB) | |
|████████████████████████████████| 51kB 21kB/s | |
Requirement already satisfied: SQLAlchemy>=0.6.0 in e:\-avpfbmcx\lib\site-packages (from flask-sqlacodegen) (1.2.11) | |
Installing collected packages: inflect, flask-sqlacodegen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 准备环境 | |
1. 使用 python3 创建虚拟环境 | |
```bash | |
python3 -m venv py3venv #创建一个py3venv的虚拟环境 | |
``` | |
2. 激活虚拟环境 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 一、操作系统的目标与作用 | |
操作系统(Operating System)是配置在计算机硬件上的第一层软件,是对计算机系统的首次扩充。其主要作用是管理好这些设备,提高他们的利用率和系统的吞吐量,并为用户和应用程序提供一个简单的接口,便于用户使用。 | |
### 操作系统的目标 | |
- `方便性` | |
- `有效性` | |
- `可扩充性` | |
- `开放性` | |
### 操作系统的作用 | |
- `os作为用户与计算机硬件系统之间的接口` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
作为小白想搭建一个个人博客,在网上看了很多的教程,发现大家搭建的博客都挺赏心悦目的,为了节约服务器资源就在 GitHub 上搭建了自己的博客,分享一些踩坑的经验。 | |
## Github 仓库 | |
- 首先你必须有一个 github 账号 | |
- 然后新建一个仓库,这一有第一个坑,我之前用了不同于 github 用户名(Hugking)来作为项目名称(wkaanig.github.io),一直没能搭建成功,后来看到其他大牛的经验,才发现项目名一定要是用户名(Hugking).github.io 的形式(README.md 可选可不选) | |
- 在 github 中 setting 添加生成页面的选项 Source 选择 master branch | |
_注意:_ | |
如果你之前没有用 git 关联过自己的 github 库,需要配置 SSH 等参数,否则无法成功,这部分搜 git 就有很多相关教程 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 一、腾讯讯云主机开启 root 用户登录如下: | |
+ 腾讯云主机ubuntu 系统默认用户名为 ubuntu | |
- 1.修改root密码 | |
```bash | |
sudo passwd root | |
Enter new UNIX password: // 输入新密码 | |
Retype new UNIX password: // 重复密码 | |
passwd: password updated successfully // 修改成功 | |
``` | |
- 2.修改 sshd_config 配置如下 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 压缩与解压文件 | |
```bash | |
tar | |
-c: 建立压缩档案 | |
-x:解压 | |
-t:查看内容 | |
-r:向压缩归档文件末尾追加文件 | |
-u:更新原压缩包中的文件 | |
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
搭建` Git 服务器`需要准备一台运行 Linux 的机器,强烈推荐用 Ubuntu 或 Debian ,这样,通过几条简单的 `apt` 命令就可以完成安装。假设你已经有 `sudo` 权限的用户账号,下面,正式开始安装。 | |
## 1. 服务器安装 `git` | |
```bash | |
$ sudo apt-get install git | |
``` | |
## 2. 创建一个 `git` 用户用来运行 `git` 服务 | |
```bash | |
$ sudo adduser git | |
``` | |
- 当然你也可以创建你想管理 git 的用户名 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- String类(C#中 String 与 string 具有相同的含义) | |
1. 静态 | |
`Compare` | |
`Concat` | |
`Format` | |
2. 非静态方法 |