【发布时间】:2011-02-19 20:53:15
【问题描述】:
我正在使用 API 在 Linux 上为 Twitter 帖子编写 Python 脚本,是否可以在没有撇号的情况下以明文形式传递诸如“(”“)”等符号......
% ./twitterupdate this is me #works fine
% ./twitterupdate this is bad :(( #this leaves a error on bash.
唯一的选择是将文本括在 --> "" 中吗?喜欢..
% ./twitterupdate "this is bad :((" #this will reduce the ease of use for the script
有什么解决办法吗?
【问题讨论】:
标签: python bash command-line-arguments