Python if判断语句写在一行

QhStockJieGuoJsonRow01[QhKey] = QhValue01 if QhValue01 != None else ""
QhStockJieGuoJsonRow02[QhKey] = QhValue02 if QhValue02 != None else ""

Python if判断语句写在一行_第1张图片

 

你可能感兴趣的:(python)