这是代码:
import sys
# Gather our code in a main() function
def main():
for arg in sys.argv:
print(arg)
# Standard boilerplate to call the main() function to begin
# the program.
if __name__ == '__main__':
main()
当我在 cmd 中运行它时a.py a&7
,它只打印a
(&7
无法识别)。我怎样才能将字符发送&
到sys.argv[]
?