我想检查字符串是否包含 dart/flutter 中的特定子字符串。
例子
String mainString = "toyota allion 260 2010";
String substring = "allion";
Run Code Online (Sandbox Code Playgroud)
我想检查天气子字符串是否在 mainString 中?
请帮我找到解决方案
我需要编写一个 Ansible 脚本来在 MySQL 数据库中执行 SQL 查询。
这是我尝试过的。你能指导一下吗?
---
- hosts: localhost
tasks:
- name: retrive data
command: mysql -u root -h localhost dbname ansible --execute "select * from MyGuests"
Run Code Online (Sandbox Code Playgroud)