-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v1.6.3
- Loading branch information
Showing
17 changed files
with
271 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,63 @@ | ||
Metadata-Version: 2.1 | ||
Name: GitiPack | ||
Version: 1.6.3 | ||
Summary: GITI网站的辅助功能,用于推动GITI的发展 | ||
Home-page: https://github.com/ljy-002/GitiPack | ||
Author: 李今越 | ||
Author-email: ljy123ljy123@dingtalk.com | ||
License: UNKNOWN | ||
Description: # GitiPack | ||
|
||
## 如何使用: | ||
命令`GitiPack.ctig()`,需要在运行此包的时候提前运行。 | ||
|
||
命令`GitiPack.webg()`,需要在使用时运行。 | ||
|
||
函数`GitiPack.ctime()`返回时间戳 | ||
|
||
函数`GitiPack.mtime()`返回可读的字符串 | ||
|
||
函数`GitiPack.stime()`获取格式化时间字符串 | ||
|
||
函数`GitiPack.jc(值)`计算“值”的阶乘值,并写入“.tig”文件 | ||
|
||
函数`GitiPack.pertion(列表,开始索引,结束索引)`对“列表”进行全排序,并写入“.tig”文件 | ||
|
||
函数`GitiPack.w(内容)`将“内容”写入“.tig”文件 | ||
|
||
## 版本 | ||
### v1.3.2 | ||
创建函数`tig`和`webg` | ||
|
||
### v1.4.5 | ||
修复了函数`tig`和`webg`不能调用的问题 | ||
|
||
### v1.5.8 | ||
修复了“Tig.ini”的版本错误问题 | ||
|
||
修复了更新v1.4.5后导入包时发生的错误 | ||
|
||
增添“__pycache__”配置文件,让程序运行的更快 | ||
|
||
更新`ctime()`、`mtime()`、`stime()`、`w()`函数 | ||
|
||
加入`jc()`、`pertion()`算法 | ||
|
||
### v1.6.0 | ||
修复了更改v1.5.8的主要文件后无法调用包的错误 | ||
|
||
添加了更多Tig的配置信息 | ||
|
||
### v1.6.3 | ||
修复了`GitiPack.ctig()`命令介绍的错误 | ||
|
||
添加最低版限制`v1.6.0` | ||
|
||
|
||
Platform: UNKNOWN | ||
Classifier: Programming Language :: Python :: 3.7 | ||
Classifier: License :: OSI Approved :: MIT License | ||
Classifier: Operating System :: OS Independent | ||
Requires-Python: >=3.7 | ||
Description-Content-Type: text/markdown | ||
Provides-Extra: GitiPack |
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,9 @@ | ||
README.md | ||
setup.py | ||
GitiPack/__init__.py | ||
GitiPack/tig.py | ||
GitiPack.egg-info/PKG-INFO | ||
GitiPack.egg-info/SOURCES.txt | ||
GitiPack.egg-info/dependency_links.txt | ||
GitiPack.egg-info/requires.txt | ||
GitiPack.egg-info/top_level.txt |
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 @@ | ||
|
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,3 @@ | ||
|
||
[GitiPack] | ||
python |
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 @@ | ||
GitiPack |
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,10 @@ | ||
from .tig import * | ||
# 调用文件 | ||
|
||
# import tig | ||
|
||
# tig.ctig() | ||
# tig.webg() | ||
|
||
# a = tig.ctime() | ||
# print(a) |
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,48 @@ | ||
import time | ||
|
||
|
||
def ctig(): | ||
global f | ||
f = open("GITI-Web-Go!.tig", 'a', encoding="UTF-8") | ||
f.write("————————————\n") | ||
ti = time.strftime("%Y-%m-%d %H:%M:%S\n", time.gmtime()) | ||
f.write(ti) | ||
|
||
def webg(): | ||
f.write("Deal with: giti-web.github.io\n") | ||
|
||
def ctime(): | ||
return time.time() | ||
|
||
def mtime(): | ||
return time.ctime() | ||
|
||
def stime(): | ||
return time.strftime("%Y-%m-%d %H:%M:%S",time.gmtime()) | ||
|
||
# —————————— | ||
|
||
def w(r): | ||
f.write(r) | ||
f.write('\n') | ||
|
||
# —————————— | ||
|
||
def jc(n): | ||
if n == 1: | ||
return 1 | ||
else: | ||
return jc(n-1)*n | ||
|
||
def pertion(l, s, e): | ||
w("进行全排列") | ||
if s == e: | ||
w(l) | ||
else: | ||
for i in range(s,e+1): | ||
l[s],l[i]=l[i],l[s] | ||
# 将这个元素和第一个元素交换 | ||
pertion(l,s+1,e) | ||
l[s],l[i]=l[i],l[s] | ||
# 换回位置 | ||
|
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,47 @@ | ||
# GitiPack | ||
|
||
## 如何使用: | ||
命令`GitiPack.ctig()`,需要在运行此包的时候提前运行。 | ||
|
||
命令`GitiPack.webg()`,需要在使用时运行。 | ||
|
||
函数`GitiPack.ctime()`返回时间戳 | ||
|
||
函数`GitiPack.mtime()`返回可读的字符串 | ||
|
||
函数`GitiPack.stime()`获取格式化时间字符串 | ||
|
||
函数`GitiPack.jc(值)`计算“值”的阶乘值,并写入“.tig”文件 | ||
|
||
函数`GitiPack.pertion(列表,开始索引,结束索引)`对“列表”进行全排序,并写入“.tig”文件 | ||
|
||
函数`GitiPack.w(内容)`将“内容”写入“.tig”文件 | ||
|
||
## 版本 | ||
### v1.3.2 | ||
创建函数`tig`和`webg` | ||
|
||
### v1.4.5 | ||
修复了函数`tig`和`webg`不能调用的问题 | ||
|
||
### v1.5.8 | ||
修复了“Tig.ini”的版本错误问题 | ||
|
||
修复了更新v1.4.5后导入包时发生的错误 | ||
|
||
增添“__pycache__”配置文件,让程序运行的更快 | ||
|
||
更新`ctime()`、`mtime()`、`stime()`、`w()`函数 | ||
|
||
加入`jc()`、`pertion()`算法 | ||
|
||
### v1.6.0 | ||
修复了更改v1.5.8的主要文件后无法调用包的错误 | ||
|
||
添加了更多Tig的配置信息 | ||
|
||
### v1.6.3 | ||
修复了`GitiPack.ctig()`命令介绍的错误 | ||
|
||
添加最低版限制`v1.6.0` | ||
|
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,8 @@ | ||
[Tig] | ||
deal_with_gitis = True | ||
tig_file = True | ||
user_management = undefined | ||
tig = 0.7 | ||
version = "1.6.3" | ||
multi_progress = True | ||
Use_SystemKeyItems = False |
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,10 @@ | ||
from .tig import * | ||
# 调用文件 | ||
|
||
# import tig | ||
|
||
# tig.ctig() | ||
# tig.webg() | ||
|
||
# a = tig.ctime() | ||
# print(a) |
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,48 @@ | ||
import time | ||
|
||
|
||
def ctig(): | ||
global f | ||
f = open("GITI-Web-Go!.tig", 'a', encoding="UTF-8") | ||
f.write("————————————\n") | ||
ti = time.strftime("%Y-%m-%d %H:%M:%S\n", time.gmtime()) | ||
f.write(ti) | ||
|
||
def webg(): | ||
f.write("Deal with: giti-web.github.io\n") | ||
|
||
def ctime(): | ||
return time.time() | ||
|
||
def mtime(): | ||
return time.ctime() | ||
|
||
def stime(): | ||
return time.strftime("%Y-%m-%d %H:%M:%S",time.gmtime()) | ||
|
||
# —————————— | ||
|
||
def w(r): | ||
f.write(r) | ||
f.write('\n') | ||
|
||
# —————————— | ||
|
||
def jc(n): | ||
if n == 1: | ||
return 1 | ||
else: | ||
return jc(n-1)*n | ||
|
||
def pertion(l, s, e): | ||
w("进行全排列") | ||
if s == e: | ||
w(l) | ||
else: | ||
for i in range(s,e+1): | ||
l[s],l[i]=l[i],l[s] | ||
# 将这个元素和第一个元素交换 | ||
pertion(l,s+1,e) | ||
l[s],l[i]=l[i],l[s] | ||
# 换回位置 | ||
|
Binary file not shown.
Binary file not shown.
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 @@ | ||
import setuptools | ||
|
||
with open("README.md", "r", encoding="UTF-8") as fh: | ||
long_description = fh.read() | ||
|
||
setuptools.setup( | ||
name="GitiPack", | ||
version="1.6.3", | ||
author="李今越", | ||
author_email="ljy123ljy123@dingtalk.com", | ||
description="GITI网站的辅助功能,用于推动GITI的发展", | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
url="https://github.com/ljy-002/GitiPack", | ||
packages=setuptools.find_packages(), | ||
classifiers=[ | ||
"Programming Language :: Python :: 3.7", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent", | ||
], | ||
python_requires='>=3.7', | ||
extras_require={"GitiPack": ["python"]}, | ||
) |