python便捷獲取當前路徑

python 獲取當前路徑: 「./」  獲取當前路徑的上一層:「./」 舉個栗子:( lena.jpg放在當前路徑的上一層) import tensorflow as tf import cv2 img = tf.image.convert_image_dtype(tf.image.decode_jpeg(tf.read_file('../lena.jpg'), channels=1),dtyp
相關文章
相關標籤/搜索