#2
apull2022-06-21 09:58
|
當沒指定變數時 強制給予一個空值, 變數=''
讓程序能繼續執行
程序代码:
a= 'trans'
b= 'relating'
c= 'cause '
#d='' #空值
#e='' #空值
y = 'yes '+a+' '+b+' '+c+' '+' '+d+' '+e
print(y)
b= 'relating'
c= 'cause '
#d='' #空值
#e='' #空值
y = 'yes '+a+' '+b+' '+c+' '+' '+d+' '+e
print(y)
[此贴子已经被作者于2022-6-20 15:19编辑过]