申明:仅供测试,仅供娱乐
代码行数: 29 行

https://github.com/gaojiuli/greenbox
仅供娱乐

1
ansheng 2017 年 3 月 28 日
刚测了一下,并没有成功
|
3
prasanta OP 我去删除项目了
## 代码如下 ```python import datetime import os from random import randint now = datetime.datetime.now() start = now.replace(year=2016) def change_day(): return datetime.timedelta(days=1, seconds=randint(0, 60), minutes=randint(0, 60), hours=randint(0, 24)) def change_time(): return datetime.timedelta(seconds=randint(0, 60), minutes=randint(0, 60)) commit_date = (start + change_day()) times = randint(5, 30) while commit_date < now: commit_date = commit_date + change_day() for i in range(times): f = open('data.txt', 'a+') commit_date = commit_date + change_time() f.writelines(commit_date.isoformat() + '\n') f.close() os.system('git add .') os.system('git commit --date={time} -m "Update {time}"'.format(time=commit_date.isoformat())) ``` |
6
to2false 2017 年 3 月 28 日
你把项目删了, f = open('data.txt', 'a+') 怎么破
|
10
yoa1q7y 2017 年 3 月 28 日
能不能不要这样...
|
12
martint028 2017 年 3 月 28 日
很爽啊,楼主自学 python ?
|
13
wolfan 2017 年 3 月 28 日
没事还是多陪陪媳妇不好?不要那啥也绿了, python 可刷不红啊。
|
17
prasanta OP @martint028 自学的啊
|
20
zhidian 2017 年 3 月 28 日 还可以把 git 的邮箱名改成 Linus Torvalds 等各路大神的,再 commit ,然后发现你的 repo 真是众星云集啊!不过,这并没有什么卵用。
|
21
xiubin 2017 年 3 月 28 日
|
23
licraft 2017 年 3 月 29 日
所以,自动填满格子意义何在?
|
25
zoffy 2017 年 3 月 29 日
骗人骗己
|
26
lollitop 2017 年 3 月 29 日
好无趣的玩意。。
|
27
nyanyh 2017 年 3 月 29 日
全刷绿,再到淘宝买 GitHub 刷 star 服务,短时间内成为开源大神
|
28
CareiOS 2017 年 3 月 29 日
果然无聊之极。
|
29
cocoakekeyu 2017 年 4 月 4 日
请问楼主单位还招人吗
|
30
changdaye 2017 年 8 月 28 日
为什么没有成功??
|