Do you see those strings on his legs?
你看见它腿上的那些细绳了吗?
If those strings are selected carefully, they can make the resulting code much clearer.
如果这些字符串经过精心挑选,它们就可以使结果代码更简洁。
They pluck those strings and sing those refrains I know so well, and hold so close.
它们撸去琴弦,开始演唱我无比熟悉的副歌,如此靠近而坚定。
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.
我再来运行下看是不是做对了,提示输入底,噢,它提示说不是浮点数,我很高兴,然后我输入一个,浮点数作为高度显示结果和我预期的相同,顺便说一句,我只是在最后把这些字符串连接起来了。
We've looked so far really at two non-scalar types. And those were tuples written with parentheses, and strings.
关于这两种基本类型我们已经,学的相当多了,包括哪些元组和字符串类型。
> >> David: F, c because I want to tell printf, "Use these values in those placeholders, these values in those format strings."
>,【无法辨认的声音】,>>,大卫:“f,c“因为我想告诉printf,“在那些占位符,和那个格式下打印这些值“
应用推荐