Python split() 通过指定分隔符对字符串进行切片 切片之后为list数据类型。 sentence = 'I can because I think I can ' s_1 = sentence.split(sep=' ', maxsplit=2) s_2 = sentence.split ...
分类:
其他好文 时间:
2019-11-16 16:09:38
阅读次数:
75
str.count(x, _start, _end) x:需要查找的字符串(包含单个字符)。 _start:查找开始的位置,默认为0,也就是str开始的位置。 _end:查找结束的位置,默认为-1,也就是str结束的位置。 sentence = 'I can because I think I ca ...
分类:
其他好文 时间:
2019-11-16 16:09:26
阅读次数:
68
1、搜索标题含有关键字的预防 intitle:"tp5教程" --搜索标题含有tp5教程相关信息。 intitle: tp5教程 --tp5 和教程的关键字可能分开。 2、搜索链接当中含有thinkphp的链接 inurl:thinkphp 3、组合使用,链接当中含有thinkphp 并且标题含有t ...
分类:
其他好文 时间:
2019-11-16 14:56:16
阅读次数:
73
thinkphp 获取前端传递过来的参数 use think\facade\Request; // 获取当前请求的name变量 Request::param('name'); // 获取当前请求的所有变量(经过过滤) Request::param(); // 获取当前请求未经过滤的所有变量 Requ ...
分类:
Web程序 时间:
2019-11-16 00:24:57
阅读次数:
215
ThinkPHP支持模块(甚至可以包含控制器)的完整域名、子域名和IP部署功能,让你的模块变得更加灵活,模块绑定到域名或者IP后,URL地址中的模块名称就可以省略了,所以还可以起到简化URL的作用。 开启域名部署 无论是子域名还是IP部署,首先要在应用配置文件中开启APP_SUB_DOMAIN_DE ...
分类:
Web程序 时间:
2019-11-13 16:03:52
阅读次数:
76
thinkphp6.0 多应用模块下提示控制器不存在 在项目根目录下使用Composer composer require topthink/think-multi-app 参考链接 ...
分类:
Web程序 时间:
2019-11-13 00:39:40
阅读次数:
264
//查询一个数据专用 DB::table('think_user')->where('id',1)->find(); 查询的结果不存在,返回null //查询数据集使用: DB::table('think_user')->where('id',1)->select(); select 查询结构不存在 ...
分类:
其他好文 时间:
2019-11-11 12:59:28
阅读次数:
87
```c /* Author: Zoro Date: 2019/11/10 Function: Valid Anagram Title: leetcode 242 anagram.c think: 桶排序思想 */ #include #include #include bool isAnagram(... ...
分类:
其他好文 时间:
2019-11-11 12:39:55
阅读次数:
99
We like to think that the human mind is special. One sign of our superiority is self-awareness, which is generally seen as the pinnacle of consciousne ...
分类:
其他好文 时间:
2019-11-11 09:55:53
阅读次数:
81
最近刚刚入门php,学着用fastadmin框架,之前一直用在线命令管理的插件增加crud以及菜单,今天突然发现有一个加错了,就想用命令行删除,fastadmin文档写的也很多跟命令行有关的东西,但是一直没用到过,今天试试删一个创建错的东西. php think crud -t goods -c g ...
分类:
Web程序 时间:
2019-11-07 13:02:19
阅读次数:
97