我有这应该创建一个新的数据库,当用户输入/newdb nameofdatabase Telegram::Bot::Client.run(token) do |bot|
bot.listen do |message|
case message.text
when '/newdb.*/'
bot.api.send_message(chat_id: messag
在字符串中,我想使用re模块查找长度大于4的所有单词。 样品输入:This is good Python forum and its helping a lot to beginners. 输出:['Python','helping','beginners] 下面我试过,但它不工作: match=re.findall(r'([\w]{4}).*',str1)