Instance of ‘Expr’ has no ‘norm’ member pylint(no-member)
能否贴出出现错误的代码?
可以贴一下代码么?应该是你调用norm
函数出错
norm是矢量才有的成员函数。Expr是标量,是不是弄错了?
win10 vscode 示例代码 安装完python插件 pylint提示错误,但是编译可以通过,运行没问题
贴出来了
没有出错,是编译器报错而已
刚才打开example里的这个fractal不会报错,自己写的会有报错,奇怪啊
请禁用pylint(这是一个代码格式化工具),它不懂如何处理taichi-scope的代码
好的,但是examples里的同样的代码却不会报错,复制到自己的文件夹下就会,:(
Please don’t use VSCode or pylint plugin, all codes inside @ti.kernel
will conflict with pylint. Run with python fractal.py
directly from cmd/powershell should work.
好的