Diferença entre `linha de retorno 'e` linha de retorno`
Nouma pergunta recente minha, Cito algum código porJake Vanderplas. Pode-se encontrar o seguinte código:
from matplotlib import pyplot as plt
from matplotlib import animation
fig = plt.figure()
ax = plt.axes(xlim=(0, 2), ylim=(0, 100))
line, = plt.plot([], [])
def init():
line.set_data([], [])
return line,
def animate(i):
line.set_data([0, 2], [0,i])
return line,
anim = animation.FuncAnimation(fig, animate, init_func=init,
frames=100, interval=20, blit=True)
plt.show()
Noinit
ouanimate
função, o retorno "valor" éline,
(com vírgula).
Pergunta, questão: Existe uma diferença com um "valor" de retorno que serialine
(sem vírgula)?
obrigado