"What was startling to me, considering how complicated the screenplay was, was seeing it in a visual format.
VOA: standard.2010.07.16
Glancing at the bottom, this is pretty arbitrary, but I chose to format my string as follows: % 1f so at the bottom here I'm printing out %.1f, which quick sanity check means print just one digit after the decimal place.
看下这个底部,这个是相当随意的,但我选择把我的字符串格式化成这样:,所以在这个底部我打印输出,提醒一下,这是一个只打印出,小数点后一位的方法。
And that's probably useful if you're actually trying to format things in a nice way.
这个可能有用,当你想把它的格式,变得美观一点的时候。
They were given the opportunity to question the president in a format similar to a radio talk show, with association members calling or e-mailing with comments and queries.
VOA: standard.2009.07.28
OK. Now, having done that, again I want to stress this idea and I'm going to write it out one more time, that there's a particular format here.
好,讲完了这些,我又想要强调一下这个思想,并且再一次把它写出来了,就是有一个特定的格式。
We'll also post an exam from a previous year so you can actually see exactly what the format's going to look like.
我们还会提供一张往年的试卷,这样你就可以确切地知道,考卷的形式。
I think math is the most obvious one that would be suitable for adapting to this format.
我觉得数学是最明显的,数学能很好地,适应这种方式。
I'm going to post it in a format which will be black and white and easy to print out so you don't have to worry about this.
我会把它做成黑白板式上传,方便同学打印,所以完全不用担心笔记问题
We tolerate a lot of variability in the concept sheets because this is your opportunity to be creative and to think about whatever you're reading or hearing the lecture that week, so there's no specific format to follow.
我们希望看到各式各样的观点报告,因为这样你们才有机会展示创造性,并对当周的课堂上所听到的,或者读到的内容进行相关思考,所以这里不用遵守特殊的格式要求
> >> David: F, c because I want to tell printf, "Use these values in those placeholders, these values in those format strings."
>,【无法辨认的声音】,>>,大卫:“f,c“因为我想告诉printf,“在那些占位符,和那个格式下打印这些值“
And it boils down to modifying the format string with just a simple number.
它归结于是用一个简单的数字来,修改字符串的格式。
And you don't necessarily have to do the experiments in this format.
你不一定要,用这种形式做实验。
All right. Second question: or maybe a better way of saying this, and the general format you're likely to see here is, a test involving a variable name, which must be initialized outside of the loop, and which interior to the loop gets changed, so that the test is going to change.
好,第二个问题:,换种更好的方式来说吧,你们通常喜欢的,方式是,这个测试涉及到一个变量名字,变量在循环外已经被初始化,然后循环内部会改变这个变量的值,因此测试结果会改变。
The format is the same. I'm going to ask for some input, and then I am going to use that procedure to check, is this the right type of value. And I'm trying to use that to do the coercion if you like. Same thing if it works, I'm going to skip that, if it not, it's going to throw the exception.
格式是一样的,我需要一些输入,然后我要用一个过程来检查,是否是正确的值,然后你就可以做强制转换了,如果能运行,那是一样的,我打算跳过这段,如果不正确,那就会抛出一个异常。
But there're others, backslash T. Folks in the consulting world and finance world like to share files in Excel format or in Text format that looks like Excel.
还有一些其他的转义字符,譬如\t,顾问界,财政界的,人们很喜欢用Excel文档,或类似于Excel的文本文件。
> David: At some point in time, I'm going to have to have declared the variable as a float before I can then hand it to printf as the insertion value for that format strength.
>,大卫:在一个特定的时间,我将需要,声明float类型这样的变量,那样我就可以把它打印出来,像是格式化优点的插入值。
应用推荐