上一页 1 2 3 4 5 6 7 8 ··· 15 下一页
摘要: springboot一般默认static为静态资源路径,所以访问静态资源时不需要加上static,想要加上static可以访问,需要在配置文件中加入 spring: mvc: static-path-pattern: /static/** 阅读全文
posted @ 2021-10-07 11:58 陈扬天 阅读(1283) 评论(0) 推荐(0) 编辑
摘要: 背景:常在项目交付时供他人参阅,我们常会出一版数据库文档,详细解释每个字段,如果一个个去手动地导,不仅太慢而且chun,最近在GitHub发现一款神器,screw,只需简单配置即可自动导出。GitHub地址 一、数据库支持MySQLMariaDBTIDBOracleSqlServerPostgreS 阅读全文
posted @ 2021-08-12 11:15 陈扬天 阅读(517) 评论(0) 推荐(0) 编辑
摘要: 举例说明如下: 步骤1:定义一个接口 public interface IPerson { void doWork(); } 步骤2:对该接口做第一个实现类 import org.springframework.stereotype.Component; @Component("student") 阅读全文
posted @ 2021-07-07 08:57 陈扬天 阅读(4093) 评论(0) 推荐(0) 编辑
摘要: python中的生成器是一种特殊的迭代器,可以类比成类: 如下定义斐波那契数列,初始化obj1,相当于new 出一个对象 以下两种方式输出结果相同,均为斐波那契数列前10项 def fibonacci(all_num): a, b = 0, 1 current_num = 0 while curre 阅读全文
posted @ 2021-07-04 17:07 陈扬天 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 需要安装 pygame pip install pygame 如果想导出exe文件 需要安装pyinstaller pip install pyinstaller 导出exe命令: pyinstaller -F -w --add-data ./images;./images plane_main.p 阅读全文
posted @ 2021-06-29 17:21 陈扬天 阅读(110) 评论(0) 推荐(0) 编辑
摘要: import pyautogui from pynput.keyboard import Controller, Key, Listener # 监听按压 def on_press(key): try: print("正在按压:", format(key.char)) except Attribut 阅读全文
posted @ 2021-06-29 17:18 陈扬天 阅读(2015) 评论(0) 推荐(0) 编辑
摘要: import qrcode # 导入二维码的库 # 二维码的内容 content = 'https://www.baidu.com' # 使用qrcode库中的QRcode模块 qr = qrcode.QRCode() # 给二维码添加数据 qr.add_data(content) # 生成二维码 阅读全文
posted @ 2021-06-29 17:17 陈扬天 阅读(346) 评论(0) 推荐(0) 编辑
摘要: bootstrap.yml配置文件是类似云配置文件,整合springcloud才能使用,优先级大于application.yml,如果不起作用,可能是版本不对,选择低版本就行了 maven父子工程项目创建,idea中首先选择创建maven项目,删除src目录,父项目pom.xml如下: <?xml 阅读全文
posted @ 2021-05-27 10:23 陈扬天 阅读(427) 评论(0) 推荐(0) 编辑
摘要: void gongyueshu(){ int a,b,r,n; scanf("%d,%d", &a, &b); if(a<b){ n=a; a=b; b=n; } r=a%b; while(r!=0){ a=b; b=r; r=a%b; } printf("%d",b);} #include<std 阅读全文
posted @ 2021-03-14 12:11 陈扬天 阅读(181) 评论(0) 推荐(0) 编辑
摘要: https://juejin.cn/post/6844903939402383368 阅读全文
posted @ 2021-02-20 09:18 陈扬天 阅读(57) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 15 下一页