Mac的python版本从2.7升级到 3.8

1、下载python https://www.python.org/downloads/release/python-381/ image.png 2、安装python 3.8.1 下载好的pkg文件进行安装,安装完成之后,python 3.8.1的默认安装路径如下:执行: ope...

Python使用阿里云镜像

临时使用 pip install -i https://mirrors.aliyun.com/pypi/simple/ 包名 以后都使用阿里云的源 pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/ 查看设置的结果 pip ...

uni-app带参数跳转页面

传参页面 <view class="comment" @click="comment(detail.goods_id)"> <!-- 拿到要传过去的参数 --> </view> methods: { comment:function(id){ uni.navigateTo({ //多个参数用&拼接:u...

docker 创建mongodb 容器 映射本地数据目录和配置文件

mongo 容器内部的三个重要目录 日志目录:/var/log/mongodb/ or /var/log/mongodb/mongod.log 数据库目录:/data/db 数据库配置文件:/data/configdb/mongo.conf or /data/configdb/ 准备工作 //在本地...

Nginx配置https

user nginx; worker_processes 1; error_log /var/log/nginx/error.log warn; pid /var/run/nginx.pid; events { worker_connections 1024; } http { include /etc/nginx/mime.t...

uni-app 实用样式学习 flex

如果需要均分元素实现页面排版,需要在父级元素上写入desplay:flex;子级元素就会自动均分排版;如果想实现元素不同比例的排版,在子级元素加入:nth-of-type(x)样式来定义比例。 <view class="topbar"> ...