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.
拉杆或按下按钮会让纸翻一下,这样你就能在新的一行上打字了,同时移动打印字母的,压印头,这样也能移到最左边。
But what you would have seen is the program just doing this, printing out to the screen.
但是你看到的只是程序,打印字符串到屏幕上。
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.
请告诉我你想要几个头,设为,然后告诉它你想要几条腿,设为,最后它会打印结果,哇哦。
So you can go online and get the syllabus, and download it and print it.
你可以在网上找到,下载并打印。
Now that may interest you at the moment, or what you may want to do is to get a printout of the whole day after that.
是不是很吸引人,你可能会想要,把接下来这一整天的结果打印出来
There are coffee machines and there are lounge sofas and everything else. There are computers, there are printers, so it's a good lounge, and I think if you go there one day a week to do your problem sets, or more often, that's a good meeting place,I recommend that.
那里还有咖啡机和舒适的大沙发,以及一些其它设施,比如电脑,打印机,真的是个很好的休息室,如果你每周去那里,花一天时间完成你的作业,或者多去几次,确实是个好地方,我强力推荐
I print out -- and this is only wrapping - because of the big font -- I print out, "I demand that you give me a positive integer."
我打印出来--这个字符相互覆盖了,因为用的是大字体-,我打印:“我需要你给我一个正整数“
> So for anything that's not printf, you have to write out code?
>,对于不是打印输出的,你需要写出代码吗?
Then when you're done you print the page, and we have a special instruction for that in just a moment, and then you'll have what you need for the concept sheets.
当你完成的时候,请把这页打印出来,我们马上会对此做出详细说明,这样你就得到了写观点报告需要的材料
But for the next week or two when you're writing programs, at least for the first time, generally if you're trying Scratch to debug them like you might have been trying to troubleshoot Scratch, you're probably going to reason - through it by looking through the your code -- -- top to bottom, maybe engage a staff member for help -- but your friend will also be printf.
但是,在接下来的一两周内,当你们写程序的时候,或至少在第一次写的时候,通常如果你在调试程序,就像你们可能已经试着调试过,你们或许是通过查看你们的代码,来推断你们的程序-,从头到尾,可能还需要别人的帮忙-,但是你的朋友也将要打印输出。
So input is an int called F, print out to the screen or your piece of paper the value of C. Odds are you only need two, maybe three lines of code for this, but the goal ultimately will be try it on your own.
所以输入是一个int类型的F,在你的屏幕上,或你们的纸上打印出C的数值,可能你们需要两行或者三行的代码,但是最终的目标需要你自己独自尝试。
Now as an aside, turns out you can do more interesting formatting with printf, and this is useful even for ASCII art purposes.
说点题外话,结果你可以用printf来打印其他的格式,这是非常有用的,甚至是为了ASCII艺术的目的。
What I'm going to ask you to do is track what you're eating, and to go to a website that will allow you to enter all your eating, and then it will print out a dietary analysis of that.
我希望你们能记录每天吃的东西,然后到相关网站输入你的饮食记录,之后打印出饮食分析报告
Then also you'll be asked to do identifying information if you print it out from the program itself, but if you go up to your web browser print option and print from that particular thing then you can do it and no identifying information will be necessary.
如果你想直接从网上打印分析结果,就得提供个人信息,但是,如果你用浏览器中的打印选项,只打印营养分析结果,你就可以打印文件而无需提交个人信息
So a loop or an infinite loop, because true is always true, there is no-- nothing on the screen that seems to change this keyword true, so this is actually a deliberate infinite loop, but so was that thing up top to forever say hi or whatever it is you wanted to do.
因此而出现死循环,屏幕上的这些语句无论怎么运行,都无法改变它为真的事实,这就是所谓的死循环,无论你想不想要,屏幕上都会不断打印出“hi“
So can you use GetString to print the answer?
所以你能够用GetString来打印答案吗?
应用推荐