如果你已經安裝了pip,那麼只需輸入:
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple opencv-python
使用的是清華的鏡像資源。(超快)
如果你已經安裝了pip,那麼只需輸入:
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple opencv-python
使用的是清華的鏡像資源。(超快)
conditions?a:b,這裏有 int a, float b,如果說condition = true,則a會先轉換成float,然後輸出。 可見這裏 a,b必須是可以統一的數據類型