Skip to content

Commit

Permalink
open source
Browse files Browse the repository at this point in the history
  • Loading branch information
子呅i committed Jan 8, 2024
0 parents commit 8c2204a
Show file tree
Hide file tree
Showing 6 changed files with 926 additions and 0 deletions.
31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# 自考教育云课堂 —— 刷课、刷习题、考试

> *说明***本程序仅供学习和参考,禁止用于商业或违法犯罪用途!**
*前言*

> 开发自2020,期间大大小小的迭代,目前已不再使用故而开源供感兴趣的同学参考学习。
> 如出现版本过低之类的提示请修改Zikao.py内的版本号


*配置*

> 运行前请先将文件 **config.default.yml** 拷贝后的文件重命名为 **config.yml**
> 再修改 **config.yml** 内的配置信息


*运行*

> ⚠️ 运行前请先确认环境是否为 ***Python 3.11***
```shell
git clone https://github.com/shanling2016/Zikao && cd Zikao/
```

> 运行程序
```shell
python3 main.py config.yml
```
23 changes: 23 additions & 0 deletions Util.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# /usr/bin/python3
# coding=utf8

"""
工具集
"""

import time

# 获取时间戳
def get_timestamp():
timestamp = time.time()
return int(timestamp * 1000)

# json转字符
def obj2str(obj):
ret = ""
for key in obj:
if ret == "":
ret = key + "=" + str(obj[key])
else:
ret = ret + "&" + key + "=" + str(obj[key])
return ret
Loading

0 comments on commit 8c2204a

Please sign in to comment.