Ai
1 Star 0 Fork 20

keshui/AzurLaneAutoScript

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Flatten_generator.py 369 Bytes
一键复制 编辑 原始数据 按行查看 历史
huzb1 提交于 2023-01-03 08:24 +08:00 . 1
shape = 'G7'
def location2node(location):
return chr(location[0] + 64 + 1) + str(location[1] + 1)
def node2location(node):
return ord(node[0]) % 32 - 1, int(node[1]) - 1
shape = node2location(shape.upper())
for y in range(shape[1]+1):
text = ', '.join([location2node((x, y)) for x in range(shape[0]+1)]) + ', \\'
print(text)
print(' = MAP.flatten()')
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/keshui2021/AzurLaneAutoScript.git
git@gitee.com:keshui2021/AzurLaneAutoScript.git
keshui2021
AzurLaneAutoScript
AzurLaneAutoScript
master

搜索帮助