So in fact if I run this, ah, and save it, and it prints out odd.
因此实际上如果我运行这个,啊,先保存它,然后它输出奇数。
The way he did a lot of prints and you know, famous, like celebrities and pop, like basically the pop art,
他的画,是很有名的,就像社会名流和流行音乐,基本上是流行艺术,
I'm going to print it and let's see what it prints.
我要将其打出来,我想显示下数组的内容。
There are 100 times more books, pamphlets, prints, and maps produced in Russia under the time of Peter the great than there had been in the whole previous century.
彼得大帝在位时期发行了大量的书籍,宣传册子,报纸和地图等印刷制品,数量比俄国过去一个世纪的总和还多百倍
I am archiving prints, actually some nice Japanese prints for a friend.
我要去保存图片,实际上,是给一位朋友的一些日本图片。
Pulling this lever or pushing the button would actually rotate the paper enough so that you'd be on a new line and it would also move the little imprinting head that prints the letters of the alphabet and such all the way to the left.
拉杆或按下按钮会让纸翻一下,这样你就能在新的一行上打字了,同时移动打印字母的,压印头,这样也能移到最左边。
Now I call that, and it says, 20 tell me how many heads you want, give it a 20, and tell it how many legs 56 you want, give it 56, and it prints out the answers. I know, whoop-dee-doo.
请告诉我你想要几个头,设为,然后告诉它你想要几条腿,设为,最后它会打印结果,哇哦。
It evaluates, and it prints.
先运算,再返回结果。
And then prints it back out.
然后显示出来。
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.
我再来运行下看是不是做对了,提示输入底,噢,它提示说不是浮点数,我很高兴,然后我输入一个,浮点数作为高度显示结果和我预期的相同,顺便说一句,我只是在最后把这些字符串连接起来了。
OK, in fact if we look at this, if I say, print of p, it prints it out in that form.
好,实际上如果,我们来看看这个,如果我输入,p的显示。
You notice what it did, it printed out that little, right up here I'd said enter a number and that's what it's printed out, so I can enter a number and it prints it out.
注意这个程序做了些什么,显示出了指定值,然后显示需要输入个数字,然后程序会显示这个数字,我输入一个数字然后程序显示了它。
t prints out 0.
那么程序会怎么做呢?会显示答案为。
I've got another little thing here that I'm going to use a little later on that just prints out values of things.
给我p2的x值,对它们进行比较,就像我们通常会做的那样。
And it sure enough prints what we expected it to print.
现在如果我显示下ivys的内容,它肯定会显示出我们期待的结果。
Ah ha, it goes into that accept portion, prints out a message, and goes back around the while loop to say try again. And it's going to keep doing this until I give it something that does serve as a float.
他会说输入一个浮点数,啊哈,它就到了那段处理代码,打印出消息,然后回到while循环让我们再输一次,它会持续这么做直到它接受到一个浮点数。
应用推荐