-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
子呅i
committed
Jan 8, 2024
0 parents
commit 8c2204a
Showing
6 changed files
with
926 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.