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

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -