12_09、一些常用配置

一、国际化

LANGUAGE_CODE = 'zh-hans'

TIME_ZONE = 'Asia/ShangHai'

USE_I18N = True

USE_L10N = True

USE_TZ = False

 二、国内镜像源

1.阿里云:https://mirrors.aliyun.com/pypi/simple/
2.豆瓣:https://pypi.douban.com/simple/
3.清华大学:https://pypi.tuna.tsinghua.edu.cn/simple/
4.中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/
5.华中理工大学:http://pypi.hustunique.com/
6.山东理工大学:http://pypi.sdutlinux.org/

# 利用镜像源快速安装第三方库
pip3 install 库 -i 国内源

三、参数类型

# 传入的形参m必须是int类型,
# 传入的形参n必须是str类型,
# 返回的值必须是str类型
def add(m: int, n: str) -> str:
    pass

 

posted @ 2022-04-17 01:11  三三得九86  阅读(28)  评论(0)    收藏  举报