码迷,mamicode.com
首页 >  
搜索关键字:strip    ( 2365个结果
IDEA通过Maven打包JavaFX工程(OpenJFX11)
1 概述 最近研究JFX,写出来了但是打包不了,这。。。尴尬。。。 IDEA的文档说只支持Java8打成jar包: 尝试过直接使用Maven插件的package,不行,也尝试过Build Artifacts,也不行,各种奇奇怪怪的问题。包括下图中的 Error....fx:deploy is not ...
分类:编程语言   时间:2020-05-30 01:05:04    阅读次数:245
ServletContext、ServletContextListener、Filter、Servlet的执行顺序
转自:https://www.jianshu.com/p/15c86fb429f6 容器启动加载顺序: ...
分类:其他好文   时间:2020-05-29 21:40:02    阅读次数:69
SYS模块
解析 sys.argv import sys # python3 run.py 1 2 3 # sys.argv 获取的是解释器后的参数值 print(sys.argv) 文件拷贝的原始方法 src_file = input('原文件路径:').strip() dst_file = input('新 ...
分类:其他好文   时间:2020-05-29 21:09:08    阅读次数:53
python 把if 写在一行的两种方式
第一种:列表生成式 # info = '姓名=小王&年龄=16&身高=175' # 用一行代码,得到其中的年龄数字,不要数索引 info = '姓名=小王&年龄 = 16&身高=175' [print(one.strip('年龄=')) for one in info.replace(' ','') ...
分类:编程语言   时间:2020-05-29 20:57:44    阅读次数:814
fastadmin中的一些莫名其妙的函数---遇到的一些函数,如何定位函数的位置呢?
首先记录一些fa中遇到的蛋疼的属性和方法 dataLimit dataLimitField relationSearch strip_tags trim getRelation collection group column with filter preExcludeFields dataLimi ...
分类:其他好文   时间:2020-05-29 09:32:25    阅读次数:137
函数对象与嵌套
函数对象 精髓:可以把函数当成变量去用 1.可以赋值 # func=内存地址 def func(): print('from func') f=func # 函数func赋值给变量f print(f,func) # 打印f和func的内存地址,完全相同 f() # 相当于调用了函数func() 输出 ...
分类:其他好文   时间:2020-05-28 23:17:11    阅读次数:58
python的有参装饰器
def auth(db_type): def deco(func): def wrapper(*args, **kwargs): name = input('your name>>>:'.strip()) pwd = input('your password>>>:'.strip()) if db_ ...
分类:编程语言   时间:2020-05-27 20:43:32    阅读次数:89
springboot 中CommandLineRunner接口的作用
原文地址:https://www.jianshu.com/p/13980d3ee7fd 先看CommandLineRunner接口的API: import org.springframework.core.annotation.Order; public interface CommandLineR ...
分类:编程语言   时间:2020-05-26 18:07:37    阅读次数:77
字符串
1.可以使用制表符或换行符添加空白 制表符 \t 换行符 \n 2.删除空白用对变量调用lstrip()和strip(),lstrip()删掉的是开头空白,rstrip()删掉的是结尾的空白,若要永久删掉多余的空白,需要将操作后的结果保存回变量中 >>> favorite_language = ' ...
分类:其他好文   时间:2020-05-24 23:43:44    阅读次数:51
Mxnet基础知识(一)
1. 基本数据结构 和pytorch等中的tensor类似,mxnet中的ndarray或者nd,用来操作矩阵或者张量数据。基本操作类似于Numpy, 支持计算,索引等。 创建矩阵 from mxnet import nd #或者 from mxnet import ndarray as nd #创 ...
分类:Web程序   时间:2020-05-24 12:05:38    阅读次数:108
2365条   上一页 1 ... 11 12 13 14 15 ... 237 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!