上一页 1 ··· 4 5 6 7 8 9 10 11 12 下一页
摘要: 问题: 原因: id 是一个内置的函数。你取的变量名 ,最好不要用内置的函数名,ide友好提示,就是指的这个 解决: 在file-settings里搜索shadow, 把shadowing built-ins 后面对勾去掉,应用就好了 阅读全文
posted @ 2020-06-27 20:44 明知山有小脑斧 阅读(9878) 评论(0) 推荐(1)
摘要: 1 python -m pip install --upgrade pip 阅读全文
posted @ 2020-06-24 22:22 明知山有小脑斧 阅读(308) 评论(0) 推荐(0)
摘要: 1.ArrayList 1 List list = new ArrayList<Integer>(); 2 list.add(1); 3 list.add(2); 4 list.add(3); 5 // 创建一个迭代器 6 Iterator iter = list.iterator(); 7 // 阅读全文
posted @ 2020-06-24 16:40 明知山有小脑斧 阅读(542) 评论(0) 推荐(0)
摘要: 1. 在pom.xml 添加redis依赖 1 <!-- redis --> 2 <dependency> 3 <groupId>org.springframework.boot</groupId> 4 <artifactId>spring-boot-starter-data-redis</arti 阅读全文
posted @ 2020-06-24 15:57 明知山有小脑斧 阅读(1660) 评论(0) 推荐(1)
摘要: 使用@Autowired依赖注入的时候idea会报不建议字段注入的警告 取消这个警告的方法: 上图是没有使用idea汉化的界面 把 √ 取消 就不会出现这个警告了 阅读全文
posted @ 2020-06-24 15:06 明知山有小脑斧 阅读(6113) 评论(0) 推荐(1)
摘要: 1. 显示系统相关信息 1 dmidecode -t system 2.显示内存相关信息 1 dmidecode -t memory 3.查看系统序列号 1 dmidecode -s system-serial-number 2 3 dmidecode -t system | grep 'Seria 阅读全文
posted @ 2020-06-24 09:29 明知山有小脑斧 阅读(122) 评论(0) 推荐(0)
摘要: 1. Redis默认不是以守护进程的方式运行,可以通过该配置项修改,使用yes启用守护进程 daemonize no 2. 当Redis以守护进程方式运行时,Redis默认会把pid写入/var/run/redis.pid文件,可以通过pidfile指定 pidfile /var/run/redis 阅读全文
posted @ 2020-06-23 11:34 明知山有小脑斧 阅读(192) 评论(0) 推荐(0)
摘要: 1 import java.sql.Timestamp; 2 import java.time.format.DateTimeFormatter; 3 import java.util.Calendar; 4 import java.util.Date; 5 6 /** 7 * 时间公共类 8 */ 阅读全文
posted @ 2020-06-23 10:45 明知山有小脑斧 阅读(334) 评论(0) 推荐(0)
摘要: python 内置首字母大写的方法title(),可以满足一般的需求 ,但是title()方法 会把除了首字母之外的字母变为小写 ,这时候就需要自定义首字母大写的方法了 1 # 首字母大写 2 def firstUp(title): 3 new_str = '{}{}'.format(title[0 阅读全文
posted @ 2020-06-23 10:11 明知山有小脑斧 阅读(2265) 评论(0) 推荐(0)
摘要: 在settings.py 中配置: 1 LANGUAGE_CODE = 'zh-Hans' 2 3 TIME_ZONE = 'Asia/Shanghai' 4 5 USE_TZ = False 阅读全文
posted @ 2020-06-23 08:43 明知山有小脑斧 阅读(286) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 下一页