纵使长夜漫漫永劫无期,我也要化身星辰点燃希望,你的誓言由我来实现。
人们总是在意得不到的,从而忘记了已经拥有的
难道我输了吗?
明明只是活着,哀伤却无处不在…
总有一阵风会吹过我再吹过你,总有一个瞬间我们之前的距离是零。
:#(抱拳)谢谢分享
无法逃避的是自我,而无法挽回的是过去。
倘若只是为了驱赶心中的寂寞,找谁都可以的。
幸福的轮廓,大概是圆形吧;那痛苦呢?
心不动,则不痛;爱不离,则不弃。
首页
分类
归档
友链
关于
Search
1
VS2019避免全部安装至C盘
37,904 阅读
2
2022-10月21号更新v2
19,531 阅读
3
影子系统出现BAD_SYSTEM_CONFIG_INFO蓝屏问题
13,757 阅读
4
中兴F450光猫破解隐藏模式让路由器拨号
12,998 阅读
5
WPS专业版密钥经常提示过期解决方案
8,385 阅读
默认分类
情感
技术
分享
知识积累
注册丨登录
Search
标签搜索
windows
linux
android
centos
centos7
网络技术
win11
Ubuntu
docker
python
安卓
破解
vip
编程
游戏
路由器
php
代理
v2ray
huawei
轩灵
累计撰写
114
篇文章
累计收到
1,277
条评论
今日撰写
0
篇文章
️
首页
分类
默认分类
情感
技术
分享
知识积累
页面
分类
归档
友链
关于
搜索到
2
篇与
的结果
2022-03-18
windows 部署原神Bot教程
windows 部署原神Bot玩过原神的小伙伴是不是在一些群里面看到大佬的企鹅号开着bot,可以查询游戏的一些信息等等非常羡慕呢。接下来就面向无编程基础或刚入门的萌新,对新手操作友好的Windows服务器来进行部署我们的主角【原神bot】。准备工具{cloud title="python 3.8.10 64位" type="default" url="https://www.python.org/ftp/python/3.8.10/python-3.8.10-amd64.exe" password=""/}{cloud title="Python3.8.10 32位" type="github" url="https://www.python.org/ftp/python/3.8.10/python-3.8.10.exe" password=""/}ps:大家根据系统自行选择64或者32位下载{cloud title="git最新版" type="github" url="https://github.com/git-for-windows/git/releases/download/v2.35.1.windows.2/Git-2.35.1.2-64-bit.exe" password=""/}一台电脑和一个有智慧的大脑。国内网络可能访问缓慢教程思路python环境安装隐藏内容,请前往内页查看详情拉取bot隐藏内容,请前往内页查看详情安装go-cqhttp隐藏内容,请前往内页查看详情试运行在haru-bot-setup文件夹中,双击运行HoshinoBot.bat启动hoshinobot在bot文件夹中,双击go-cqhttp.bat或者使用cmd和powershell启动go-cqhttp.exe若成功运行,窗口将出现如下结果:hoshinobot[2022-03-18 21:51:28,370 nonebot] INFO: Running on 127.0.0.1:8090 Running on http://127.0.0.1:8090 (CTRL + C to quit) [2022-03-18 21:51:28,380 nonebot] INFO: Scheduler started [2022-03-18 21:51:28,381] Running on http://127.0.0.1:8090 (CTRL + C to quit) [2022-03-18 21:51:32,810] 127.0.0.1:4741 GET /ws/ 1.1 101 - 541go-cqhttp[2022-03-18 21:51:24] [INFO]: Protocol -> connect to server: 193.112.231.60:8080 [2022-03-18 21:51:27] [INFO]: 收到服务器地址更新通知, 将在下一次重连时应用. [2022-03-18 21:51:31] [INFO]: 登录成功 欢迎使用: 野中晴 [2022-03-18 21:51:31] [INFO]: 开始加载好友列表... [2022-03-18 21:51:32] [INFO]: 开始尝试连接到反向WebSocket Universal服务器: ws://127.0.0.1:8090/ws/ [2022-03-18 21:51:33] [INFO]: 检查更新完成. 当前已运行最新版本.在bot所在群聊中发送:@bot 自检@bot 进阶检查@bot 服务器检查@bot bot状态若有回应,则说明bot已搭建完成。此时请发送lssv来确认当前群启用的服务。自定义若Bot 运行正常,可考虑开启更多模块以丰富bot的功能。在 bot\haru-bot-setup/hoshino/config/_bot_.py 文件里,将需要开启的模块前面的"#井号"删除。若想给Bot 添加更多功能,可以自行收集插件放入 HoshinoBot/hoshino/modules 文件夹中。下载时(请仔细阅读该插件的说明文档,某些插件的添加方式有所不同)Q&AQ:为什么我的Bot 发不出图片/语音?A:请检查资源路径RES_DIR是否设置正确,目录Resources下该图片/语音是否存在Q:为什么我的Bot 没有反应?A:请查看窗口显示的日志。若日志显示正常,请查看在准备工作步骤中是否放通端口。若日志有报错信息,请复制报错信息到搜索引擎解决。若日志无反应,请在该窗口输入回车(按下Enter键),查看日志是否有反应。若日志仍无反应,请查看配置文件是否正确配置若端口已经放通,请尝试其它指令;若部分指令有回应,说明bot 正常运行中,只是部分消息被tx吞了。若所有指令都无回应,- 请重新运行双击安装依赖若所有方式都无法让Bot 做出反应,请尝试重新部署Bot。Q:Bot 的权限是怎么设定的?A:基于HoshinoBot的功能,设定主人为最高权限priv.SUPERUSER,群主为仅次于主人的第二权限priv.OWNER,群管理为更次一等的权限priv.ADMIN,群员为最低权限priv.NORMAL。(黑/白名单不考虑在内) 可以在_bot_.py里设定多个主人Q:以后的更新维护?A:您可以自行访问Go-cqhttp项目 ,HoshinoBot项目和众多bot插件 来进行更新。Q:还有什么注意事项?A:请勿滥用Bot。
2022年03月18日
1,073 阅读
37 评论
151 点赞
文章转载请注明来源!
2019-01-02
python学生管理系统
student_infos=[] def print_menu(): print("="*42) print("某学院学生管理系统") print("1.添加学生信息") print("2.删除学生信息") print("3.修改学生信息") print("4.显示所有学生信息") print("5.查看学生各科成绩与总分") print("6.查看学生最低成绩") print("7.查看学生最高成绩") print("0.退出系统") print("=" * 42) def add_info(): global student_infos new_id = int (input("输入学生学号:")) new_name=input("输入学生名字:") new_sex = input("输入学生性别:(男or女)") new_phone=input("输入学生电话:") new_math = int(input("语文成绩:")) new_chinese = int(input("数学成绩:")) new_english = int(input("英语成绩:")) for t_info in student_infos: if t_info['id'] == new_id: print("此用户名已经被占用,请重新输入") return new_infos={} new_infos['id'] = new_id new_infos['name']=new_name new_infos['sex']=new_sex new_infos['phone']=new_phone new_infos['chinese'] = new_chinese new_infos['math'] = new_math new_infos['english'] = new_english student_infos.append(new_infos) def del_info(): #删除学生学号 global student_infos del_id = int(input("请输入要删除的学生学号:")) i = 0 for t_info in student_infos: if t_info['id'] == del_id: del_flag = input("你确定要删除么?(yes/no)") if del_flag == "yes": del student_infos[i] print("\n\n删除成功!") else: print("输入学号有误,请重新输入") i += 1 def modify_info(): id = int(input("请输入你要修改学生的学号:")) # 检测是否有此学号,然后进行修改信息 i = 0 leap = 0 for t in student_infos: if t['id'] == id: leap = 1 break else: i = i + 1 if leap == 1: while True: Name = input("输入更改后的姓名:") Sex = input("输入更改后的性别:") phone = input("输入更改后的手机号码:") t['name'] = Name t['sex'] = Sex t['phone'] = phone print("修改成功") break else: print("没有此学号,修改失败!") def Search_num(student_infos, new_id): print("学号 姓名 性别 手机号码 语文 数学 英语 总分") count = 0 for t_info in student_infos: if t_info['id'] == new_id: scorenum=int(t_info['chinese']+t_info['math']+t_info['english']) print (t_info['id'], '\t' ,t_info['name'],'\t', t_info['sex'],'\t',t_info['phone'], '\t', t_info['chinese'], '\t',t_info['math'], '\t',t_info['english'], '\t',scorenum) break count = 0 if count == len(student_infos): print ("没有该学生学号!") def max_min(x, y, z): global maxmark global minmark maxmark = minmark = x if y > maxmark: maxmark = y else: minmark = y if z > maxmark: maxmark = z else: minmark = z def min_mark(student_infos, new_id): count = 0 for t_info in student_infos: if t_info['id'] == new_id: max_min(t_info['chinese'],t_info['math'],t_info['english']) print("学号 姓名 性别 手机号码 最低成绩 ") print (t_info['id'], '\t' ,t_info['name'],'\t', t_info['sex'],'\t',t_info['phone'], '\t', minmark) break count = 0 if count == len(student_infos): print ("没有该学生学号!") def max_mark(student_infos, new_id): count = 0 for t_info in student_infos: if t_info['id'] == new_id: max_min(t_info['chinese'],t_info['math'],t_info['english']) print("学号 姓名 性别 手机号码 最高成绩 ") print (t_info['id'], '\t' ,t_info['name'],'\t', t_info['sex'],'\t',t_info['phone'], '\t', maxmark) break count = 0 if count == len(student_infos): print ("没有该学生学号!") def show_infos(): print("=" * 42) print("学生信息如下:") print("=" * 42) print("学号 姓名 性别 手机号码 语文 数学 英语") i=0 for temp in student_infos: print("%d %s %s %s %d %d %d"%(temp['id'],temp['name'],temp['sex'],temp['phone'],temp['chinese'],temp['math'],temp['english'])) i=i+1 def main(): while True: print_menu() key=input("输入对应的数字") if key=='1': add_info() elif key=='2': del_info() elif key == '3': modify_info() elif key == '4': show_infos() elif key == '5': ID = int(input("请输入学生的学号")) Search_num(student_infos, ID) elif key == '6': ID = int(input("请输入学生的学号")) min_mark(student_infos, ID) elif key == '7': ID = int(input("请输入学生的学号")) max_mark(student_infos, ID) elif key == '0': quit_confirm=str(input("退出yes or no?偷偷告诉你没有返回键!")) if quit_confirm.lower()=='yes': break elif quit_confirm.lower()=='no': continue else: print("输入有误,重新输入代码!") main()本python管理系统是博主帮“搞机帮-林林”那个蠢货写的23333
2019年01月02日
803 阅读
0 评论
133 点赞
文章转载请注明来源!