macOS 中默认安装了 python, 但是是 2.x 的版本, 通常我们需要手动安装 python3. 安装之后, 我们需要使用 python3 和 pip3 对应的命令. 而且把包全安装到系统环境下,好像也不是很优雅. 所以我们使用虚拟环境.
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update
sudo apt install python3.10
sudo apt install python3.10-venv
. $env:USERPROFILE\.config\powershell\user_profile.ps1 |
export JAVA_HOME=~/app/java-se-8u41-ri |
import imgkit | |
import pandas as pd | |
import requests | |
from bs4 import BeautifulSoup | |
def get_request_by_get(link): | |
r = requests.get(link) | |
r.encoding = 'GBK' | |
return r.text |
import pandas as pd | |
files = [ | |
'2601L20011-20191030230000-20191030235959.csv', | |
'2601L20011-20191031230000-20191031235959.csv', | |
'2601L20022-20191030230000-20191030235959.csv' | |
] | |
floder_name = '/Users/hyoban/Downloads/期末考察任务_1/数据科学大作业仿真数据/2组仿真数据/' |
动画的过渡效果, 主要有 fade, slide, scale, expand(shrink).
import androidx.compose.animation.Crossfade | |
import androidx.compose.foundation.layout.Box | |
import androidx.compose.foundation.layout.Column | |
import androidx.compose.foundation.layout.fillMaxSize | |
import androidx.compose.material.Button | |
import androidx.compose.material.Text | |
import androidx.compose.runtime.Composable | |
import androidx.compose.runtime.getValue | |
import androidx.compose.runtime.mutableStateOf | |
import androidx.compose.runtime.remember |