数据结构实验报告
环境:CLion
Cpp1过于没用不传了
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687#include <iostream>#include <stack>#include <string>#include <sstream>using namespace std;int precedence(char op) { switch (op) { case '+': case '-': return 1; case '*': case '/': return ...
使用Keras库中的LSTM模型进行依据时间的预测
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657import pandas as pdfrom sklearn.preprocessing import MinMaxScalerfrom sklearn.metrics import mean_squared_errorfrom keras.models import Sequentialfrom keras.layers import LSTM, Denseimport numpy as npimport matplotlib.pyplot as pltfilepath = '/data810_2.xlsx'data = pd.read_excel(filepath)data['Time'] = pd.to_datetime(data['Time'], format='%Y-%m-%d-%H.%M.%S.% ...
利用python寻找数据中的异常数据
123456789101112131415161718192021import pandas as pd# 假设你的数据存在一个名为'data.csv'的CSV文件中,且有三列:'组编号', '时间', '数值'df = pd.read_csv('TenMinuteData.csv')def find_outliers(group): Q1 = group.quantile(0.25) Q3 = group.quantile(0.75) IQR = Q3 - Q1 lower_bound = Q1 - 1.5 * IQR upper_bound = Q3 + 1.5 * IQR return group[(group < lower_bound) | (group > upper_bound)]outliers = df.groupby('PARAMID')['VALUE'].apply(find_o ...
Stable Diffusion 提示词(Prompt)教学
提示词的应用使用模型:Stable Diffusion 文生图功能
语法规则英文书写 手动输入/翻译 可以将形容词分开来说明 例如:晴天的云朵 – 晴天 云朵
分割词 以英文“,”分割词语,例如
11girl,snowman,forest,sun,sunshine, shining on body, ......
提示词分类人物主体及特征服饰穿搭 white dress发型发色 long hair五官特点 small eyes面部表情 smiling肢体动作 stretching###场景特征可以适量加入形容词 细节
室内 室外大场景 蓝天 森林 大海小细节 白云 小路 花环境光照白天黑夜 day/night特定时段 morning光环境 sunlight天空 Blue Sky补充:画幅视角距离人物比例观察视角镜头类型内容提示词通用高画质1best quality, ultra-detailed, masterpiece, hires, 8k
特定高分辨率类型1extremely detailed CG unity 8k wallpaper, unreal ...
Java 作业 Gourmet Coffee System 实验1
为大家提供一个小小的思路SalesFormatter接口12345package GourmetCoffee;public interface SalesFormatter { public abstract String formatSales(Sales sales);}
PlainTextSalesFormatter类123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051package GourmetCoffee;import java.util.ArrayList;import java.io.*; public class PlainTextSalesFormatter implements SalesFormatter{ private static PlainTextSalesFormatter singletonInstance; private PlainTextSalesFormatter() ...
Java 作业 Gourmet Coffee System 作业2
Java 作业 Gourmet Coffee System 作业2Catalog Class12345678910111213141516171819202122232425262728package ProductOrder;import java.io.*;import java.util.*;public class Catalog implements Iterable<Product>{ private ArrayList<Product> products; public Catalog() { this.products = new ArrayList<>(); } public void addProduct(Product product) { this.products.add(product); } public Iterator<Product> iterator() { return products.iterator(); ...
Java第一次作业纪实,订购产品及咖啡类
水了一点代码,记录一下Product类
1234567891011121314151617181920212223242526272829303132333435package ProductOrder;public class Product { private String code; private String description; private double price; public String getCode() { return code; } public String getDescription() { return description; } public double getPrice() { return price; } public Product() { } public Product(String initialCode,String initialDescription,double initialPrice) { this ...
基于C++与OpenCV的贪吃蛇小游戏(简单版)
本人蒟蒻一个,因为学习OpenCV途中收到了要写贪吃蛇小游戏的要求
于是上网广搜精华
震惊的发现他们写的贪吃蛇都用了很多复杂的函数(包括类啊巴拉巴拉,让人很难看懂)
于是我自己琢磨了很长时间
写出来了一个比较平易近人的贪吃蛇版本
也恳请各位大佬指正写的不好的地方
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581 ...
Hello World
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Quick StartCreate a new post1$ hexo new "My New Post"
More info: Writing
Run server1$ hexo server
More info: Server
Generate static files1$ hexo generate
More info: Generating
Deploy to remote sites1$ hexo deploy
More info: Deployment