判断参数并赋予默认值
时间:2017-04-06 01:50:48
收藏:0
阅读:236
一个有用的code,判断用户给的参数(UserEnterFile)是否存在,如果不存在则用(EnterNothing)作为默认值
filename=${UserEnterFile:-"EnterNothing"}
本文出自 “7995400” 博客,请务必保留此出处http://8005400.blog.51cto.com/7995400/1913192
原文:http://8005400.blog.51cto.com/7995400/1913192
评论(0)