There are several problems with your code, most of which you can solve yourself if you read the docstring forodeint more details carefully.
, - odeint. , (, , ) , . dy/dt = a * y, y (0) = 100. , , fun, .
import numpy as np
from scipy.integrate import odeint
import matplotlib.pyplot as plt
def fun(y, t, a):
"""Define the right-hand side of equation dy/dt = a*y"""
f = a * y
return f
y0 = 100.0
t = np.linspace(0, 1, 51)
a = -2.5
y = odeint(fun, y0, t, args=(a,))
plt.plot(t, y[:,0])
plt.xlabel('t')
plt.ylabel('y')
plt.show()
:

odeint SciPy Cookbook ( " " ).