Last edited on
string e ="FT" + to_string(ht) + "\r\n";
which, to be honest, is what I'd have done in Python.
Last edited on
Just as a Python FYI, f-strings are more elegant, and easier to read, than using the
format() function:
1 2 3
|
ht = 10
e = f'FT{ht}\r\n'
|
Last edited on