MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / cellname

Function cellname

tools/python-3.11.9-amd64/Tools/demo/spreadsheet.py:450–453  ·  view source on GitHub ↗

Translate a cell coordinate to a fancy cell name (e.g. (1, 1)->'A1').

(x, y)

Source from the content-addressed store, hash-verified

448 return "".join(out)
449
450def cellname(x, y):
451 "Translate a cell coordinate to a fancy cell name (e.g. (1, 1)->'A1')."
452 assert x > 0 # Column 0 has an empty name, so can't use that
453 return colnum2name(x) + str(y)
454
455def colname2num(s):
456 "Translate a column name to number (e.g. 'A'->1, 'Z'->26, 'AA'->27)."

Callers 4

renumberMethod · 0.85
setcurrentMethod · 0.85
setbeaconMethod · 0.85
test_basicFunction · 0.85

Calls 2

colnum2nameFunction · 0.85
strFunction · 0.85

Tested by 1

test_basicFunction · 0.68