我正在尝试编写一个Python脚本,它捕获命令行参数,并使用twitter作为搜索术语。我希望允许其他使用该脚本的人插入一个哈希标签作为搜索词,而不必转义散列或磅号。这里有一个两行脚本来说明我的问题:print "\n".join(sys.argv[1:])$ python example.py one two \#three
这是一个nodejs regexp,它替换了json解析器接受的新模式的两个引号。但在蟒蛇里,我把它翻译成someStr = "this string has one single quote ': this string has a double quote"\\\"", someStr)this string has one single quote \\": this string has a double quote \\"
为什么py