编程语言
当前日期时间import datetimeprint datetime.datetime.now()# 2018-05-08 16:53:30.101000格式化时间import datetimeprint datetime.datetime.now().strftime("%Y-%m-%d %H:%M")# 2018-05-08 16:54多加一天import datetimeprint (datetime.datetime.now()+datetime.timed
分类:编程语言 时间:2021-06-01 19:19:04 收藏:0 阅读:25
1、pom.xml <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> </dependency> 2、appliaction ...
分类:编程语言 时间:2021-06-01 19:18:38 收藏:0 阅读:20
# coding:utf-8 ''' @version: python3.6 @author: ‘eric‘ @license: Apache Licence @contact: steinven@qq.com @software: PyCharm @file: pysocks.py @time: ...
分类:编程语言 时间:2021-06-01 19:17:52 收藏:0 阅读:22
1、字符串string和字节对象bytes的转换 bytes转string (1)r.read() -->type:bytes (2)r.read().decode() >type:string (3)s = str(bytes, encoding='utf-8') 将字节对象转换为字符串 stri ...
分类:编程语言 时间:2021-06-01 19:15:23 收藏:0 阅读:23
##jdk下载地址 https://www.oracle.com/cn/java/technologies/javase/javase-jdk8-downloads.html ##选择版本 ##自定义安装位置 ##配置环境变量 我的电脑-属性-系统高级设置-环境变量-新建JAVA_HOME 配置pa ...
分类:编程语言 时间:2021-06-01 19:14:32 收藏:0 阅读:16
一、注释、标识符、关键字 单行注释、多行注释、文档注释 单行注释 // 双斜杠 多行注释(单星号) /* * */ 文档注释(双星号) 少用 /** * * */ 标识符和关键字 关键字 标识符命名规则 所有的标识符都应该以字母(A-Z或a-z),美元符($)、下划线开始 首字符之后可以是字母(A- ...
分类:编程语言 时间:2021-06-01 19:13:47 收藏:0 阅读:20
C++类型转换 string 与 int、long的转换 从string到int: string s int n= atoi(s); 从string到long: long n= atol(s) 从int、long到string: c++11加入的std::to_string(n)返回一个字符串 对于 ...
分类:编程语言 时间:2021-06-01 19:13:31 收藏:0 阅读:15
一、安装pyinstaller 首先安装pyinstaller,使用安装命令:pip install pyinstaller 二、常用命令 pyinstaller -F xxx.py #打包exe pyinstaller -F -w xxx.py #不带控制台的打包 pyinstaller -F - ...
分类:编程语言 时间:2021-06-01 19:13:16 收藏:0 阅读:22
if __name__ == '__main__':的作用 一个python文件通常有两种使用方法,第一是作为脚本直接执行,第二是 import 到其他的 python 脚本中被调用(模块重用)执行。因此 if __name__ == 'main': 的作用就是控制这两种情况执行代码的过程,在 if ...
分类:编程语言 时间:2021-06-01 19:12:45 收藏:0 阅读:20
Spring基础相关 声明Bean,类注解 @Component@Service@Repository IOC,自动注入,属性注解 @AutoWired @Resource @Inject 其他 @Import @ImportResource 一些接口 ImportBeanDefinitionReg ...
分类:编程语言 时间:2021-06-01 19:12:30 收藏:0 阅读:17
110061007100851284
上一页共512833条下一页
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!