• 2024-04-30[990] Functions of pandas
    Series.isxxxx()Series.isin():WhetherelementsinSeriesarecontainedin values.top_oceania_wines=reviews[(reviews.country.isin(['Australia','NewZealand']))&(reviews.points>=95)Series.str.islower():Checkwh
  • 2024-03-11[LeetCode] 2129. Capitalize the Title
    Youaregivenastringtitleconsistingofoneormorewordsseparatedbyasinglespace,whereeachwordconsistsofEnglishletters.Capitalizethestringbychangingthecapitalizationofeachwordsuchthat:Ifthelengthofthewordis1or2letters
  • 2023-06-09Elasticsearch 修改字段类型
    由于ES不能像关系型数据库直接修改类型,所以要借助中间索引来完成1、创建中间索引(字段维护正确的)put:https://localhost/track_bak{"settings":{"index":{"number_of_shards":"3","number_of_replicas":"1&quo
  • 2023-04-25elasticsearch 实现查询忽略大小写
    背景:在搜索的时候经常会有一种场景就是忽略大小写,不管你输入的是全大写还是全小写还是大小写混合,希望都能够搜索出结果。解决思路:Elasticsearch中的lowercasenormalizer将文本转换为小写,并将其作为规范形式存储在索引中。这可以确保在搜索和比较文本时忽略大写字母的差异,从而提
  • 2022-12-13The Psychology of a WTL Project: Lowercase Cause (a typing program)
    ThePsychologyofaWTLProject:LowercaseCause(atypingprogram) DownloadLowercaseCause-939KbDownloadLowercaseCausewithoutsounds-
  • 2022-10-16while循环里的输出语句执行了两次
    代码如下:#include<stdio.h>intmain(){charcapital,lowercase;printf("请输入大写字母!\n");capital=getchar();while(capital<65||capital>90){printf("输入