美文网首页
必修1-P26页code1

必修1-P26页code1

作者: 壹顾倾城 | 来源:发表于2021-03-02 08:25 被阅读0次
    #-------------------------------------------------------------------------------
    # Name:        module1
    # Purpose:
    #
    # Author:      Administrator
    #
    # Created:     09-10-2020
    # Copyright:   (c) Administrator 2020
    # Licence:     <your licence>
    #-------------------------------------------------------------------------------
    
    def main():
        import numpy as np
        import matplotlib.pyplot as plt
    
        x0 = [5,10,15,20,25,30,35,40,45,50]
        y0 = [586,291,198,143,101,98,72,68,59,55]
    
        plt.title("Test")
        plt.xlabel("R/O")
        plt.ylabel("I/am")
        plt.scatter(x0[:], y0[:], 5, "red", linewidth=3)
        plt.plot(x0,y0)
        plt.show()
    
    if __name__ == '__main__':
        main()
    
    

    测试输出:


    搜狗截图20210302082508.jpg

    相关文章

      网友评论

          本文标题:必修1-P26页code1

          本文链接:https://www.haomeiwen.com/subject/zchtqltx.html