摘要: import numpy as np import matplotlib.pyplot as plt theta=np.array([0.25,0.45,0.65,0.75,1,1.35,1.65,2,0.25]) r=[60,70,80,40,70,80,75,65,60] plt.polar(t 阅读全文
posted @ 2022-04-06 16:29 动物园天下第一 阅读(261) 评论(0) 推荐(0) 编辑
摘要: time series import pandas as pd data = pd.read_csv(r'../data/data.csv') data # 数据那么好,为什么不回归呢... x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 x11 x12 x13 y 0 3831732 阅读全文
posted @ 2022-03-31 15:08 动物园天下第一 阅读(241) 评论(0) 推荐(0) 编辑
摘要: import pandas as pd import numpy as np from sklearn.model_selection import train_test_split from sklearn.tree import DecisionTreeClassifier import sea 阅读全文
posted @ 2022-03-24 12:50 动物园天下第一 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 四则运算 页面代码: 采用HTML + CSS 进行操作 字体则是采用Noto Sans SC、 open Sans 样式则是采用Bootstrap <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>四则运算测试</title 阅读全文
posted @ 2021-09-21 17:03 动物园天下第一 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 一开始的学习链接:https://blog.csdn.net/LittleBeautiful/article/details/78955792 来自知乎的问题总结链接:https://zhuanlan.zhihu.com/p/32529204 真正的跳一跳:https://www.cnblogs.c 阅读全文
posted @ 2020-06-02 23:16 动物园天下第一 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 文件读写 open() 方法用于打开一个文件,并返回文件对象,在对文件进行处理过程都需要使用到这个函数,如果该文件无法被打开,会抛出 OSError。 open(file, mode='r') 完整的语法格式为: open(file, mode='r', buffering=-1, encoding 阅读全文
posted @ 2020-05-26 22:54 动物园天下第一 阅读(145) 评论(0) 推荐(0) 编辑
摘要: #接受端代码(更改IP地址即可,其余无须修改) import socket #使用IPV4协议,使用UDP协议传输数据 s=socket.socket(socket.AF_INET, socket.SOCK_DGRAM) #绑定端口和端口号,空字符串表示本机任何可用IP地址 s.bind(('100 阅读全文
posted @ 2020-05-13 11:27 动物园天下第一 阅读(327) 评论(0) 推荐(0) 编辑
摘要: 学习链接:https://www.cnblogs.com/sun0618-/p/10742303.html 别人做的笔记实在是太好了,所以就参考别人的东西做学习笔记了 “做好笔记”———这是自己有待学习的地方。 import matplotlib.pyplot as plt def autolabe 阅读全文
posted @ 2020-05-06 11:57 动物园天下第一 阅读(139) 评论(0) 推荐(0) 编辑
摘要: import random def printIntro(): print("2019310143132") print("模拟乒乓球晋级赛") print("七局四胜制,一局共打11场") print("程序运行需要ABCD的能力值(以0到1之间的小数表示)") def getInputs(): 阅读全文
posted @ 2020-04-21 19:11 动物园天下第一 阅读(130) 评论(0) 推荐(0) 编辑
摘要: #GIF合成import PIL.Image as Image def get_gif(pics_dir,n,t=0.1): imgs = [] for i in range(1,n): pic_name = '{}.png'.format(i) #名字需要与图片名称对应 temp = Image. 阅读全文
posted @ 2020-04-14 09:12 动物园天下第一 阅读(297) 评论(0) 推荐(0) 编辑