If you really want to be obnoxious, you can do this because really these operators just undo themselves, right?
如果你的确有点反感,你可以这样做,因为这些操作符可以撤销它们自己,对不?
Let's say that you have a classmate who's really obnoxious.
假设你有一个令人讨厌的同学。
And again, if I just run this, just to show that it's going to do the right thing, it says enter base, I'm obnoxious, it says oops, wasn't a float, so we'll be nice about it and I enter a height, and it prints out what I expected. I just concatenated those strings together, by the way, at the end.
我再来运行下看是不是做对了,提示输入底,噢,它提示说不是浮点数,我很高兴,然后我输入一个,浮点数作为高度显示结果和我预期的相同,顺便说一句,我只是在最后把这些字符串连接起来了。
She's really obnoxious. And maybe she's good with you.
她是那么讨人厌。也许她对你挺好的。
应用推荐