上一页 1 2 3 4 5 6 7 8 ··· 54 下一页
摘要: 下载 cd /usr/local/software sudo wget https://downloads.apache.org/zookeeper/zookeeper-3.7.0/apache-zookeeper-3.7.0-bin.tar.gz 解压 sudo tar -zxvf apache- 阅读全文
posted @ 2021-11-25 11:49 aaronthon 阅读(41) 评论(0) 推荐(0) 编辑
摘要: Homebrew 是什么 Homebrew是 mac的包管理器,仅需执行相应的命令,就能下载安装需要的软件包,可以省掉自己去下载、解压、拖拽(安装)等繁琐的步骤。 比如安装服务器 nginx,打开终端执行以下命令即可安装: brew install nginx 如何安装? 方法一:官方提供方式 /b 阅读全文
posted @ 2021-11-25 10:09 aaronthon 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 美籍匈牙利科学家冯·诺依曼最先提出程序存储的思想,并成功将其运用在计算机的设计之中,根据这一原理制造的计算机被称为冯·诺依曼结构计算机。由于他对现代计算机技术的突出贡献,因此冯·诺依曼又被称为“现代计算机之父”。 一、冯·诺依曼的核心思想 1.计算机由五大部件组成 运算器:用来做算术(加减乘除)计算 阅读全文
posted @ 2021-11-11 20:44 aaronthon 阅读(2042) 评论(0) 推荐(0) 编辑
摘要: remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead. remote: Please see https://git 阅读全文
posted @ 2021-10-26 23:03 aaronthon 阅读(463) 评论(0) 推荐(0) 编辑
摘要: 将curl解析次字典形式,代码如下: # coding:utf-8 import argparse import warnings from shlex import split from http.cookies import SimpleCookie from urllib.parse impo 阅读全文
posted @ 2021-08-10 14:35 aaronthon 阅读(1488) 评论(0) 推荐(0) 编辑
摘要: 一、在项目根目录下(和.git在同一级目录下),增加.gitignore文件。 #开头 #注释,被git忽略 *.class #忽略所有.class结尾的文件 !Test.class #Test.class除外 /bin/ #忽略bin目录下的所有文件 /conf/*.txt #忽略/conf/1. 阅读全文
posted @ 2021-08-10 10:10 aaronthon 阅读(436) 评论(0) 推荐(0) 编辑
摘要: 查询后得知这是因为werkzeug新版本里需要显式导入该模块。在报错的文件(我这里是werkzeug/init.py)里添加以下代码可以解决该问题。 from werkzeug.utils import cached_property 备注: CentOS系统下文件路径:/usr/local/lib 阅读全文
posted @ 2021-08-05 21:25 aaronthon 阅读(1730) 评论(0) 推荐(0) 编辑
摘要: 一、主动抛出异常 raise Python 使用 raise 语句抛出一个指定的异常。 raise 唯一的一个参数指定了要被抛出的异常。 它必须是一个异常的实例或者是异常的类(也就是 Exception 的子类)。 如下: x = 10 if x > 5: raise Exception('x 不能 阅读全文
posted @ 2021-08-05 21:03 aaronthon 阅读(13541) 评论(0) 推荐(0) 编辑
摘要: 我们在使用SQLAlchemy模块进行数据操作过程,往往会出现一些错误,因此我们需要捕捉到这些错误,并进行一场处理。 例子如下: from sqlalchemy.exc import SQLAlchemyError db = SQLAlchemy() def commit(): try: db.se 阅读全文
posted @ 2021-08-05 20:43 aaronthon 阅读(1071) 评论(0) 推荐(0) 编辑
摘要: 精品mac绿色版软件下载网址,点击访问。 结束! 阅读全文
posted @ 2021-08-04 10:57 aaronthon 阅读(78) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 54 下一页