I'm getting an Invalid Syntax Error at line 4 using @ operator:
from numpy import array
a = array([1, 2, 3, 4])
b = array([5, 6, 7, 8])
c = a @ b
But the code works. How do I fix/ignore this error settings?
I assume your Anaconda doesn't know you're using python3.5
, assuming python2
apparently, so this syntax is invalid. You can use set interpreter
command to set it to python3.5. You can also set it in configuration to persist setting
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.