1
我有這樣的形象: font image蟒蛇 - 字符串中的字體圖像座標
我要像一個字符串轉換:
text = "Açúcar"
strcoord = []
for char in text:
code = ord(char)
y = code//16
x = code%16
strcoord += [[x,y]]
print(strcoord)
:「Açúcar山」上的圖像
我想這個座標
,其結果是:
[[1,4],[7,14],[10,15],[3,6],[1,6],[2 ,7]]
但是重音的座標是錯誤的?
有一個快速的方法來做到這一點?