python - where is the unexpected character? -
dcm.set(\["motion/position/sensor/lanklepitch", "merge", \[[1.0,dcm.gettime(10000)]] ])
no spaces after last ")"
unexpected character after line continuation character: c:\users\ady\desktop\untitled-1.py, line 12, pos 88
you have backslash @ start, after dcm.set(
. can use @ end of line, called line continuation character. have 1 after "merge",
string.
you don't need 'escape' square brackets here, nor need use line continuations inside parentheses anyway.
the following should work, example:
dcm.set([ "motion/position/sensor/lanklepitch", "merge", [[1.0, dcm.gettime(10000)]] ])
Comments
Post a Comment