mirror of
http://shenjack.top:5100/shenjack/icalingua-python-bot.git
synced 2024-11-23 20:45:06 +08:00
ennnn
This commit is contained in:
parent
9b96c69bbe
commit
fdd5e03322
|
@ -184,7 +184,7 @@ function wrap_any(names, round) {
|
||||||
// } else if ('score' in result) {
|
// } else if ('score' in result) {
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
win_rate_2 = (result.score / round * 100).toFixed(2);
|
win_rate_2 = (result.score * 100 / round).toFixed(2);
|
||||||
output_str_2 = "\u5206\u6570:|".concat(win_rate_2, "%|(").concat(round, "\u8F6E)");
|
output_str_2 = "\u5206\u6570:|".concat(win_rate_2, "%|(").concat(round, "\u8F6E)");
|
||||||
if (round > 1000) {
|
if (round > 1000) {
|
||||||
output_datas_2 = [];
|
output_datas_2 = [];
|
||||||
|
|
|
@ -167,7 +167,7 @@ async function wrap_any(names: string, round: number): Promise<string> {
|
||||||
// } else if ('score' in result) {
|
// } else if ('score' in result) {
|
||||||
} else {
|
} else {
|
||||||
// 分数结果其实还是个胜率, 不过需要 * 100
|
// 分数结果其实还是个胜率, 不过需要 * 100
|
||||||
const win_rate = (result.score / round * 100).toFixed(2);
|
const win_rate = (result.score * 100 / round).toFixed(2);
|
||||||
let output_str = `分数:|${win_rate}%|(${round}轮)`;
|
let output_str = `分数:|${win_rate}%|(${round}轮)`;
|
||||||
if (round > 1000) {
|
if (round > 1000) {
|
||||||
// 把所有要找的数据拿出来
|
// 把所有要找的数据拿出来
|
||||||
|
|
Loading…
Reference in New Issue
Block a user