I am in Python 3.3 and I only go into these 3 lines:
import sklearn as sk import numpy as np import matplotlib.pyplot as plt
I get this error:
SyntaxError: multiple statements found while compiling a single statement
What can i do wrong?
Edit: if someone comes across this question, the solution I found is to download Idlex and use its IDLE version, which allows multiple lines.
Screenshot: http://imgur.com/AJSrhhD
In a shell, you cannot execute more than one statement at a time:
>>> x = 5 y = 6 SyntaxError: multiple statements found while compiling a single statement
You need to execute them one at a time:
>>> x = 5 >>> y = 6 >>>
, , script, . .
xlrd urllib.request ssl http
???
SyntaxError:
Source: https://habr.com/ru/post/1653633/More articles:Alamofire Parse Response Data When Verification Fails - alamofireWhat is the difference between saveArg and saveArgPointee in gmock? - c ++Html5 Canvas "Composite layers" causing long frames - javascriptWhen to put a space between a tag name and a class or identifier - cssHow to build a dictionary of string lengths using a for loop? - pythonКак отсортировать элементы массива ArrayList в соответствии со своими значениями ascii? - javaWhere should I use the method before loading Jqgrid and after loading the grid to lock the screen? - javascriptChange form style in Bootstrap for validation - javascripthow to compare two complex objects without case sensitivity in linq - c #Spring boot caching using redis, the key has \ xac \ xed \ x00 \ x05t \ x00 \ x06 - javaAll Articles