码迷,mamicode.com
首页 >  
搜索关键字:基本用法    ( 3201个结果
python中返回列表中特定指定元素的所有索引
python中返回列表中指定元素的所有索引。 1、基本用法 >>> test1 ['aa', 'bb', 'aa', 'cc', 'aa', 'cc', 'dd', 'xx', 'bb'] >>> test1.index("aa") 0 2、返回所有索引 >>> test1 ['aa', 'bb', ...
分类:编程语言   时间:2021-04-29 12:10:59    阅读次数:0
python中列表切片
python中列表切片。 1、基本用法 >>> test1 [11, 22, 33, 44, 55, 66, 77, 88, 99, 0] >>> test1[2:5] [33, 44, 55] 2、 >>> test1 [11, 22, 33, 44, 55, 66, 77, 88, 99, 0] ...
分类:编程语言   时间:2021-04-29 12:03:12    阅读次数:0
myBatis的学习之 ( 二 ) ----- myBatis的应用
一、基本用法 1.添加jar包 mybatis-3.2.8.jar mysql-connector-java-5.1.7-bin.jar 添加配置文件 datasource.properties 1 jdbc.driverClassName=com.mysql.jdbc.Driver 2 jdbc. ...
分类:其他好文   时间:2021-04-08 13:08:04    阅读次数:0
SpringBoot-2.yaml文件
yml文件 基本用法 //传统xml配置: <server> <port>8081<port> </server> //yaml配置: server: prot: 8080 //行内写法 student: {name: qinjiang,age: 3} //数组( List、set )用 - 值表示 ...
分类:编程语言   时间:2021-03-17 14:48:05    阅读次数:0
011 文件管理高级(ACL、SU、SUDO)
ACL ACL是为了解决某种特殊环境下的,用户权限需求。 setfacl : 设置acl权限 getfacl :查看ACL权限 acl权限归属 u : 指定用户 g : 指定组 o : 修改其他用户权限 m : 指定mask权限 注:默认情况下,ACL权限跟普通权限保持一致。 基本用法 修改属主的权 ...
分类:其他好文   时间:2021-03-17 14:46:44    阅读次数:0
git导出代码的方法~archive
问题 如果你用过svn,一定知道svn export,可以用来从代码库中导出一份干净的代码(没有.svn等)。git是否有类似功能呢? git archieve 可以用于将库中代码打包。 1. 基本用法: git archive --format tar.gz --output "./output. ...
分类:其他好文   时间:2021-03-15 11:26:06    阅读次数:0
iframe+postMessage 跨域通信
最近遇到一个项目,用了iframe嵌入了另一个项目作为内容区,两个项目之间需要进行信息传递,如果用window.top的话只支持同一个域,于是便想到了postMessage来进行跨域通信。 1.postMessage基本用法 【发送消息】 otherWindow.postMessage(messag ...
分类:其他好文   时间:2021-03-05 12:55:51    阅读次数:0
ansible when条件语句用法
ansible when条件语句用法 参考 基本用法 - hosts: all tasks: - include: Ubuntu.yml when: ansible_os_family == "Ubuntu" - include: RHEL.yml when: ansible_os_family = ...
分类:其他好文   时间:2021-02-27 13:41:18    阅读次数:0
ES6标准入门 - 5. 函数的扩展
函数参数的默认值 基本用法 ES6之前 由于不能直接为函数的参数指定默认值 所以只能采用一些变通的方法 function log(x, y) { y = y || 'world' console.log(x, y) } 上面代码问题是:如果参数y赋值了 但是对应的布尔值为false 则该赋值不起作用 ...
分类:其他好文   时间:2021-02-20 12:10:23    阅读次数:0
C#控制台输出彩色文字
参考开源项目:https://github.com/tomakita/Colorful.Console 首先通过NuGet安装Colorful.Console。 基本用法如下: using System; using System.Drawing; using Console = Colorful. ...
分类:Windows程序   时间:2021-02-18 13:17:30    阅读次数:0
3201条   上一页 1 2 3 4 ... 321 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!