LoginSignup
1
0

More than 1 year has passed since last update.

Jupyter Notebookで思いもよらない罠にハマった話

Posted at

Pythonで否定が!じゃないことを忘れていて書いた俺も悪いんだけどさ。さすがに、こんなんなると思わないじゃないですか。

問題: Jupyter Notebookでの実行結果を予想せよ

a = !True
if a:
    print(a)

答え:

['/bin/bash: 行 1: True: コマンドが見つかりません']

(ノ`´)ノミ┻┻

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0