-*- mode: compilation; default-directory: "~/temp/test/" -*-
Comint started at Fri Dec 18 13:59:41
/usr/bin/ipython test2.py
Enter a temprature in Celsius:24
That's 75.2 degrees Fahrenheit
Inferior Python finished at Fri Dec 18 13:59:45
错误的:
-*- mode: compilation; default-directory: "~/temp/test/" -*-
Comint started at Fri Dec 18 11:47:43
/usr/bin/ipython test2.py
Enter a temprature in Celsius:34
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
~/temp/test/test2.py in <module>
4 return fahrenheit
5
----> 6 celsius=float(input("Enter a temprature in Celsius:"))
7 fahrenheit=c2f(celsius)
8 print("That's",fahrenheit,"degrees Fahrenheit")
ValueError: could not convert string to float: '34\t\x08\x08\x08\x08\x0834\t\x08\x08\x08\x08\x0834\t\x08\x08\x08\x08\x0834'
Inferior Python exited abnormally with code 1 at Fri Dec 18 11:48:02
SPC m c C runs the command spacemacs/python-execute-file-focus, which is an
interactive Lisp function in ‘../../funcs.el’.
It is bound to <M-return> c C, M-m m c C, and many ordinary text characters.
(spacemacs/python-execute-file-focus ARG)
Execute a python script in a shell and switch to the shell buffer in
‘insert state’.