parent
fdb00df2c9
commit
dc6c0eae04
@ -1,2 +1,3 @@
|
||||
.idea/
|
||||
.DS_Store
|
||||
*.yml
|
@ -0,0 +1,13 @@
|
||||
# coding:utf-8
|
||||
import yaml
|
||||
|
||||
|
||||
def config():
|
||||
# 获取yaml文件路径
|
||||
yaml_path = 'config.yml'
|
||||
|
||||
with open(yaml_path, 'rb') as f:
|
||||
# yaml文件通过---分节,多个节组合成一个列表
|
||||
date = yaml.safe_load_all(f)
|
||||
# print(list(date))
|
||||
return list(date)
|
@ -0,0 +1,2 @@
|
||||
cookies: #&&分割
|
||||
bark_url:
|
@ -1,2 +1,3 @@
|
||||
requests==2.28.1
|
||||
pytz==2022.1
|
||||
pytz==2022.1
|
||||
PyYAML==6.0
|
Loading…
Reference in new issue