首页 > 编程知识 正文

老ne了,什么呢

时间:2023-05-05 03:45:31 阅读:106340 作者:1686

#!/bin/basha=4b=5# here ' a ' and ' b ' canbetreatedeitherasintegersorstrings.# thereissomeblurringbetwenthearithmetings sincebashvariablesarenotstronglytyped.# bashpermitsintegeroperationsandcomparisonsonvariables # wosevalueconsistsofall-intsofall cautionadvised,however.echo if [ ' $ a '-ne ' $ b ' ] thenecho ' $ ais not=' $ b ' ] thenecho ' $ aisnotequalto $ b ' ]='5' # ASCII 52!=ascii 53fi # inthisparticularinstance,both '-ne' and '!=' work.echoexit 0

4 is not equal to 5

(arithmetic comparison )

4 is not equal to 5。

(string comparison )

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。