10 2021 档案
摘要:背景 shell 脚本跑 Python 写数据脚本任务的时候报错: File "./xxx.py", line 59, in xxx cur.execute(insert_sql(col_string, str(data_list))) psycopg2.ProgrammingError: colu
阅读全文
摘要:一、字符串拼接方法 1. + str1 = 'a' str2 = 'b' print(str1 + str2) 输出: ab 2. , str1 = 'a' str2 = 'b' print(str1, str2) 输出: a b **注:**这个有空格,, 方法只能用于 print 函数。 3.
阅读全文
摘要:一、安装 Docker $ docker pull prest/prest:latest 二、运行 Docker $ docker run --rm -e PREST_HTTP_PORT=3000 \ -e PREST_PG_HOST=xxx.xxx.xxx.xxx\ -e PREST_PG_POR
阅读全文
摘要:一、安装 使用 docker 安装: $ docker pull postgres:alpine 二、启动 起 docker 容器: $ docker run --name some-postgres -e POSTGRES_PASSWORD=mysecretpassword -p 5432:543
阅读全文
摘要:一、Mac 环境配置 1. 在 Mac 安装 git 和 node.js 使用 brew 进行安装 brew install git brew install node 2. 安装 hexo npm install hexo g 这条命令不行(用的时候会出现 hexo: COMMAND NOT FO
阅读全文

浙公网安备 33010602011771号