标签:else 分享 cond space 技术分享 python imp pre import
1.安装matplotlib
pip3 install matplotlib
sudo apt install python3-tk
2.分段函数
from pylab import * x = linspace(0,8,200) cond = [True if (i > 2 and i < 5) else False for i in x] y = sin(x)*(x<2)+cos(x)*cond + x*(x>5) plot(x,y),show()
3.
标签:else 分享 cond space 技术分享 python imp pre import
原文地址:https://www.cnblogs.com/alfredsun/p/9792423.html