From 002fca1a58c278ab749568720f714b1f121fd87b Mon Sep 17 00:00:00 2001 From: ReBenDish <807005320@qq.com> Date: Fri, 5 Jan 2024 22:07:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E5=85=A5=E5=AF=86=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- image-process.ipynb | 26 +++++++-- js/my.js | 126 +++++++++++++++++++++++++++----------------- 2 files changed, 99 insertions(+), 53 deletions(-) diff --git a/image-process.ipynb b/image-process.ipynb index c32c94b..5a5511a 100644 --- a/image-process.ipynb +++ b/image-process.ipynb @@ -2,22 +2,40 @@ "cells": [ { "cell_type": "code", - "execution_count": 1, + "execution_count": 12, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ - "['ay_02.jpg', 'ay_08.jpg', 'ay_09.jpg', 'ay_10.jpg', 'ay_13.jpg', 'ay_17.jpg']\n" + "['img-16296087574081a93264001e2b1285b2b6d4cd9db94e8.jpg', 'IMG_20230101_104204.jpg', 'IMG_20230101_173033.jpg', 'IMG_20230513_171617.jpg', 'IMG_20230513_171635.jpg', 'IMG_20230519_110730.jpg', 'mmexport1672565557617.jpg', 'mmexport1682255691005.jpg', 'mmexport1684332552787.jpg', 'mmexport1691303344124.jpg', 'mmexport1691649897003.jpg', 'mmexport1691932933285.jpg', 'mmexport1692464263903.jpg', 'mmexport1692464266402.jpg', 'mmexport1692491544193.jpg', 'mmexport1693212484317.jpg', 'mmexport1693657304134.jpg', 'mmexport1693657329660.jpg', 'mmexport1696502033643.jpg', 'mmexport1696516536261.jpg', 'mmexport1696599088769.jpg', 'mmexport1696741766190.jpg', 'mmexport1696741767634.jpg', 'mmexport1697080746731.jpg', 'mmexport1697379292091.jpg', 'mmexport1697905232731.jpg', 'mmexport1698568723750.jpg', 'mmexport1700364653125.jpg', 'mmexport1700364658239.jpg', 'mmexport1700364662572.jpg', 'mmexport1700364672294.jpg', 'mmexport1700364676901.jpg', 'Screenshot_2023-08-28-07-36-24-431_com.tencent.mm.jpg', 'shengqi 2.jpg', '微信图片_20230101141125.jpg', '微信图片_20240101011527.jpg', '微信图片_20240101011542.jpg', '微信图片_20240101011546.jpg', '微信图片_20240101011548.jpg', '微信图片_20240101141103.jpg', '微信图片_20240101141110.jpg', '微信图片_20240101141113.jpg', '微信图片_20240101141116.jpg', '微信图片_20240101141119.jpg', '微信图片_20240101141122.jpg']\n", + "['IMG_20230101_104204.jpg', 'IMG_20230513_171635.jpg', 'mmexport1672565557617.jpg', 'mmexport1684332552787.jpg', 'mmexport1691303344124.jpg', 'mmexport1692491544193.jpg', 'mmexport1696502033643.jpg', 'mmexport1696599088769.jpg', 'mmexport1696741766190.jpg', 'mmexport1700364672294.jpg', 'Screenshot_2023-08-28-07-36-24-431_com.tencent.mm.jpg', '微信图片_20240101011548.jpg', '微信图片_20240101141110.jpg']\n" ] + }, + { + "data": { + "text/plain": [ + "13" + ] + }, + "execution_count": 12, + "metadata": {}, + "output_type": "execute_result" } ], "source": [ "import os\n", - "file_path = './images/2019/'\n", + "file_path = './images/ayue/2023/'\n", + "file_names = os.listdir(file_path)\n", + "print(file_names)\n", + "len(file_names)\n", + "\n", + "file_path = './images/2023/'\n", "file_names = os.listdir(file_path)\n", - "print(file_names)\n" + "print(file_names)\n", + "len(file_names)\n", + "\n" ] } ], diff --git a/js/my.js b/js/my.js index b381c51..b4a357d 100644 --- a/js/my.js +++ b/js/my.js @@ -1,55 +1,83 @@ var flowers_id = null -var caidan = function(){ - // alert("快找那个笨蛋开发者获得彩蛋吧!") - swal("快找那个笨蛋开发者获得彩蛋吧!", { - icon: "http://up.54fcnr.com/pic_source/41/a3/e3/41a3e383e54a6b7f8770ce30f644a42e.gif", - buttons: { - cancel: "我不管先把他打一顿!", - catch: { - text: "Throw Pokéball!", - value: "catch", - }, - }, - }) - .then((value) => { - switch (value) { +// var caidan = function(){ +// // alert("快找那个笨蛋开发者获得彩蛋吧!") +// swal("快找那个笨蛋开发者获得彩蛋吧!", { +// // icon: "http://up.54fcnr.com/pic_source/41/a3/e3/41a3e383e54a6b7f8770ce30f644a42e.gif", +// buttons: { +// cancel: "我不管先把他打一顿!", +// catch: { +// text: "Throw Pokéball!", +// value: "catch", +// }, +// }, +// }) +// .then((value) => { +// switch (value) { - case "catch": - swal({ - title:"Gotcha!", - text:"You caught the Snitch!", - icon:"https://github.com/ReBenDish/ayue-panda/blob/gh-pages/images/snitch.jpg?raw=true", - content: "input", - button: { - text: "Unlocking Charm!", - closeModal: false, - }, - }) - .then(charm => { - console.log("wangqiu",charm) - if (charm == "555") { - swal({ - title: "新年快乐!我的本命女孩!", - text: "All for you !", - icon: "https://github.com/ReBenDish/ayue-panda/blob/gh-pages/images/ruby.jpg?raw=true" - }) - } - else { - swal({ - title: "这不是真正的开锁咒哟!", - icon: "error" - }) - } - }); - break; +// case "catch": +// swal({ +// title:"Gotcha!", +// text:"You caught the Snitch!", +// icon:"https://github.com/ReBenDish/ayue-panda/blob/gh-pages/images/snitch.jpg?raw=true", +// content: "input", +// button: { +// text: "Unlocking Charm!", +// closeModal: false, +// }, +// }) +// .then(charm => { +// console.log("wangqiu",charm) +// if (charm == "555") { +// swal({ +// title: "新年快乐!我的本命女孩!", +// text: "All for you !", +// icon: "https://github.com/ReBenDish/ayue-panda/blob/gh-pages/images/ruby.jpg?raw=true" +// }) +// } +// else { +// swal({ +// title: "这不是真正的开锁咒哟!", +// icon: "error" +// }) +// } +// }); +// break; - default: - swal("对不起!你永远是我最棒的彩蛋!Always",{ - icon: "https://github.com/ReBenDish/ayue-panda/blob/gh-pages/images/wq.jpg?raw=true" - } - ); - } - }); +// default: +// swal("对不起!你永远是我最棒的彩蛋!Always",{ +// icon: "https://github.com/ReBenDish/ayue-panda/blob/gh-pages/images/wq.jpg?raw=true" +// } +// ); +// } +// }); +// } + +var caidan = function(){ + // alert("快找那个笨蛋开发者获得彩蛋吧!") + swal( { + title:"密码", + text:"唯一", + content: "input", + button: { + text: "Unlocking Charm!", + closeModal: false, + }, + }) + .then(charm => { + console.log("wangqiu",charm) + if (charm == "0718") { + swal({ + title: "ALWAYS", + text: "账号:1609bd3e99a2@drmail.in 密码:xFLbqr7hy", + }) + } + else { + swal({ + title: "答案永远是你自己", + icon: "error" + }) + } + }); } var flowers = function() {