This "negative," as Talbot called it, could then be used to print multiple positive images on another piece of treated paper.
这种被 Talbot 称之为“负片”的东西,随后会被用在另一张经过处理的纸片上来洗印多张正面图像。
Write a program to ask the user to enter a series of numbers. Print a message saying how many of the numbers are negative numbers.
编写程序,要求用户输入一组数。输出信息说明其中有多少个负数。
The problem about the instant camera is the lack of negative, and their print can fade considerably within a few years .
一次成像相机的问题在于没有底片,而其相片在数年内就会明显褪色。
But notice what this does. The first thing it does is, it says, let's check and make sure x is greater than or equal to 0. If it isn't, notice what's going to happen. None of that block is going to get executed, and it's going to come down here and print out a useful piece of information, which says, hey, you gave me a negative number. I don't know how to do this.
做的是和以前一样的事情,但是注释它做了什么,第一件做的事情就是,程序说,要去检查并且确信x是大于等于0的,如果不是的话,请注意会发生什么,下面的代码都不会被执行,程序会到这里来然后显示一些有用的信息,信息会说,嘿,你给了我一个负数,我不知道该怎么弄这个了。
应用推荐