On python crash
python crashes?
In some cases, reporting an error will cause python to exit abnormally, but this situation is extremely rare.
These situations are:
1. All errors reported in the simultaneous use of while and graphical can cause an exception
2. The process of ctrl+C (typically tkinter the calling method throws an exception tkinter.mainloop use ctrl + C initiator clicks a button or any other operation input box)
Cause a crash!!!
"Humble operation"
Please make sure you have installed matplotlib
import matplotlib.pyplot as plt
x = [0] #指数增长算法
y = [800]
n = 800
for i in range(0,10000):
x.append(i)
p = n / 100
tp = p * 10
n += tp
y.append(n)
plt.plot(x,y)
Next is the moment to witness the miracle
plt.show()
Crash directly! ! !
There are many crash methods, here are a few
A passage left by the author a few months later: I will read it a
few months later, and I feel terrible. I hope to understand, don’t spray if you don’t like it, thank you.