文章目录 组件间通信的概念组件间通信的分类组件间通信的方案父组件将方法传递给子组件(props)子组件向父组件传值(emit)通过 ref 属性获取DOM元素EventBus p a r e n t 或 parent 或 parent或 root a t t r s 与 attrs 与 attrs与 listeners provide 与…
一、分支逻辑
1、if
if condition1
thencommand1
elif condition2
then command2
elsecommandN
fiecho please input first number
read a
echo please input second number
read bif [ $a -eq $b ]
thenecho "equal"
elif [ $a -gt $b ]
thenecho "the firs…
import tensorflow as tf
import numpy as np
from tqdm import tqdm# ----------------------------- tensor常用函数2 -----------------------------------
a tf.constant([1, 2, 3, 1, 2])
b tf.constant([0, 1, 3, 4, 5])
c tf.where(tf.greater(a, b), a, b) # 若a&g…