前提・実現したいこと
pythonのプログラムで下記のページのソースを走らせようとしていますが,以下のようなエラーが起きています.
対処法がありましたら,ご教示頂けますと助かります.
https://ideal-user-interface.hatenablog.com/entry/20111212/1323692018
発生している問題・エラーメッセージ
File "<ipython-input-12-6c82ad7abcd3>", line 4 print 'button=get_ipython().run_line_magic('d,', 'x=get_ipython().run_line_magic('d,', "y=%d, xdata=%f, ydata=%f %(event.button, event.x, event.y, event.xdata, event.ydata)')") ^ SyntaxError: invalid syntax
該当のソースコード
python
1fig.show() 2 3def onclick(event): 4 print 'button=%d, x=%d, y=%d, xdata=%f, ydata=%f %(event.button, event.x, event.y, event.xdata, event.ydata)
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/06/15 09:13