小编nob*_*ice的帖子

vue应用中如何将选中的选项转移到另一个页面?

在我的Vue应用程序的第一页上,我有一个包含邮箱列表的下拉菜单

我想保存选择的值/文本并将其用作我路由到的收件箱页面上的参数或变量。

这是使用的下拉代码v-autocomplete

<v-autocomplete dense
  filled
  label="Choose Mailbox"
  v-model="mailboxes"
  :items="mailboxes"
  item-text='mailbox'
  item-value='mailbox'>
</v-autocomplete>
Run Code Online (Sandbox Code Playgroud)

这是v-btn路由到收件箱页面的按钮。

<v-btn rounded color="primary" 
  @click="$router.push('Inbox')">
Load Mailbox</v-btn>
Run Code Online (Sandbox Code Playgroud)

如何保存选定的邮箱值以在路由至收件箱页面上使用

vue.js vue-router vuetify.js

4
推荐指数
2
解决办法
108
查看次数

使用正则表达式模式从熊猫数据框中过滤行

假设我有一个像这样的熊猫数据框:

         Word      Ratings
   0     TLYSFFPK  1
   1     SVLENFVGR 2
   2     SVFNHAIRK 3
   3     KAGEVFIHK 4
Run Code Online (Sandbox Code Playgroud)

如何在 Pandas 中使用正则表达式过滤掉具有与以下正则表达式模式匹配但保留数据帧格式的单词的行?正则表达式模式为:\b.[VIFY][MLFYIA]\w+[LIYVF].[KR]\b

预期输出:

         Word    Ratings
   1     SVLENFVGR 2
   2     SVFNHAIRK 3
Run Code Online (Sandbox Code Playgroud)

regex python-3.x pandas

2
推荐指数
1
解决办法
7086
查看次数

标签 统计

pandas ×1

python-3.x ×1

regex ×1

vue-router ×1

vue.js ×1

vuetify.js ×1