久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長(zhǎng)資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      python如何繪制心形

      python繪制心形的方法:利用matplotlib和numpy畫(huà)心形,代碼為【init = np.arange(-np.pi, np.pi, 0.001);plt.fill_between(x, y, facecolor='red')】。

      python如何繪制心形

      相關(guān)學(xué)習(xí)推薦:python教程

      python繪制心形的方法:

      python 利用 matplotlib 和 numpy 畫(huà)心形。

      import matplotlib.pyplot as plt import numpy as np #初始化數(shù)據(jù) init = np.arange(-np.pi, np.pi, 0.001) y = np.subtract(np.multiply(2, np.cos(init)), np.cos(np.multiply(2, init))) x = np.subtract(np.multiply(2, np.sin(init)), np.sin(np.multiply(2, init))) #畫(huà)圖 plt.plot(x, y) plt.fill_between(x, y, facecolor='red') plt.show()

      結(jié)果:

      python如何繪制心形

      贊(0)
      分享到: 更多 (0)
      ?
      網(wǎng)站地圖   滬ICP備18035694號(hào)-2    滬公網(wǎng)安備31011702889846號(hào)