Taichi: euler.py problem

Created on 17 Jul 2020  路  1Comment  路  Source: taichi-dev/taichi

Hello, I may found some issue in euler.py file. After I copy pasted the code from webpage to my PyCharm, there are some places that cannot run properly, I am not very skillful to fix them my self, the error displayed is shown in the attached screenshot~ I do not quite understand how should the lines indented. Hope some one can help, I'd like to take a look at what visual effect this code simulates~ Thank you in advance!!

Screenshot (132)
Screenshot (133)

question

Most helpful comment

Hi, copy and paste from website will result in an extra newline between two lines so indents will be broken.
Please try copy from the raw content: https://raw.githubusercontent.com/taichi-dev/taichi/master/examples/euler.py
Or run this command in your shell: python3 -m taichi example -s euler.

>All comments

Hi, copy and paste from website will result in an extra newline between two lines so indents will be broken.
Please try copy from the raw content: https://raw.githubusercontent.com/taichi-dev/taichi/master/examples/euler.py
Or run this command in your shell: python3 -m taichi example -s euler.

Was this page helpful?
0 / 5 - 0 ratings