简体   繁体   English

SyntaxError:行继续符后面的意外字符

[英]SyntaxError: unexpected character after line continuation character

import os
os.system("grep MCM_END /storage/users/siditom/fastspace/AutoCaspSubmission/CASP12/T0860/stage2/xml/*.xml | sort -k 16 | grep -v NaN | tail -10 | awk '{print($1"\t"$16)}' | sed s/:\<ProteinInfo//g | sed s/MESHI.SERVER_weightedMedianScore=\"//g | sed s^/storage/users/siditom/fastspace/AutoCaspSubmission/CASP12/T0860/stage2/xml/^^g | sed s/.scwrl/' '/g | awk '{print ( $1"\t"$3 ) }'")

Does writing your code as follows fix the issue. 编写如下代码可以解决问题。 I believe your "\\t" was read as a line continutation plus a t which would be an unexpected character. 我相信你的“\\ t”的读成一条线continutation加上t这将是一个意外的字符。

import os
os.system("grep MCM_END /storage/users/siditom/fastspace/AutoCaspSubmission/CASP12/T0860/stage2/xml/*.xml | sort -k 16 | grep -v NaN | tail -10 | awk '{print($1\t$16)}' | sed s/:\<ProteinInfo//g | sed s/MESHI.SERVER_weightedMedianScore=\"//g | sed s^/storage/users/siditom/fastspace/AutoCaspSubmission/CASP12/T0860/stage2/xml/^^g | sed s/.scwrl/' '/g | awk '{print ( $1"\t"$3 ) }'")

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 SyntaxError:行继续符后的意外字符 - SyntaxError: unexpected character after line continuation character 命令行中的“SyntaxError:行继续字符后的意外字符” - “SyntaxError: unexpected character after line continuation character” in command line SyntaxError:行继续符后的意外字符(反斜杠) - SyntaxError: unexpected character after line continuation character (backslash) 解码字节和SyntaxError:行继续符后出现意外字符 - Decoding bytes and SyntaxError: unexpected character after line continuation character Python正则表达式SyntaxError:行继续符后的意外字符 - Python regular expression SyntaxError: unexpected character after line continuation character syntaxerror:“python 中行连续字符后的意外字符”数学 - syntaxerror: "unexpected character after line continuation character in python" math SyntaxError:使用.format(\\ * \\ * vars())的续行字符后出现意外字符 - SyntaxError: unexpected character after line continuation character using .format(\*\*vars()) Jupyter Notebook 中的 Bash:“语法错误:行继续字符后出现意外字符” - Bash in Jupyter Notebook: 'SyntaxError: unexpected character after line continuation character' 语法错误:python 中的续行字符后出现意外字符 - syntaxerror: unexpected character after line continuation character in python 如何避免 SyntaxError:行继续符后出现意外字符 - How to avoid SyntaxError: unexpected character after line continuation character
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM