1 Star 0 Fork 0

星冉 / EazyHexo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
index.py 1.36 KB
一键复制 编辑 原始数据 按行查看 历史
星冉 提交于 2020-05-21 00:17 . update
name = open("./name.txt")
pic = open("./pic.txt")
artist = open("./artist.txt")
music = open("./music.txt")
lrc = open("./lrc.txt")
write = "./write.txt"
name1 = "./name.txt"
pic1 = "./pic.txt"
artist1 = "artist.txt"
music1 = "./music.txt"
lrc1 = "./lrc.txt"
li = 0
while True:
if li <= 22:
for line in name:
print(line)
with open(write, 'a') as lines:
lines.write("{\n")
lines.write(" " + line)
li += 1
break
for line in artist:
print(line)
with open(write, 'a') as lines:
lines.write(" " + line)
# li += 1
break
for line in pic:
print(line)
with open(write, 'a') as lines:
lines.write(" " + line)
# li += 1
break
for line in music:
print(line)
with open(write, 'a') as lines:
lines.write(" " + line)
# li += 1
break
for line in lrc:
print(line)
with open(write, 'a') as lines:
lines.write(" " + line)
lines.write("},")
# li += 1
break
else:
exit() # 退出不了,不过不会死讯还!
else:
exit()
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/XRSec/EazyHexo.git
git@gitee.com:XRSec/EazyHexo.git
XRSec
EazyHexo
EazyHexo
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891