#172. 字符串列表过滤特定字符
字符串列表过滤特定字符
Filter Strings Without 'z'
Background
Dawei is organizing a list of strings and wants to filter out strings that do not contain a specific character.
Problem Description
Given a list of strings, return a new list containing all strings from the original list that do not contain the character 'z'. Note that a string's contains method (or similar functionality) can check if a string contains a substring and returns a boolean value.
Input Format
The input consists of a single line containing multiple space-separated strings.
s_1 s_2 ... s_n
Output Format
Output a list containing all strings that do not contain the character 'z'. The strings in the list should be in their original order, separated by commas and spaces, and the entire list enclosed in square brackets [].
`["res_1\