实验过程:
shiyanlou:~/ $ echo "print('hello world!')" > hello.py [16:37:37]
zsh: no such event: 0
shiyanlou:~/ $ touch hello.py [16:38:48]
shiyanlou:~/ $ echo "print('hello world)" > hello.py [16:39:00]
shiyanlou:~/ $ python hello.py [16:39:02]
File "hello.py", line 1
print('hello world)
^
SyntaxError: EOL while scanning string literal
shiyanlou:~/ $ python hello.py [16:39:12]
hello world!
shiyanlou:~/ $ touch hello_2.py [16:39:45]
shiyanlou:~/ $ echo "#!use/bin/env python/nprint('hello world!')" > hello_2.py
zsh: event not found: use/bin/env
shiyanlou:~/ $ "" [16:41:29]
zsh: 权限不够:
shiyanlou:~/ $ " [16:42:36]
dquote> #!/usr/bin/env python
shiyanlou:~/ $ " [16:42:54]
dquote> #!/usr/bin/env pyth