code fragment
的 代码 片段 code fragments
的 代码 片段
Suppose you have the following code fragment :. Static analyzers even checks code fragments which get control very rarely. We will show you relevant code snippets . This site also creates ready-to-use code snippets . Combinations with other parts of speech
Analyzers can even test those code fragments that get control very seldom. Suppose you have the following piece of code :. 例如,在上面的代码片段 中,数据helloworld!! For example, in the code snippet above, the data Hello World! It captures information via a snippet of code included in a web page. 在上面的代码片段 中,我们使用tf.zeros和np. In the snippet above we use both tf. zeros and np.最后,我们定义了我们的代码片段 ,它执行将名为Martin的员工的EmployeeName更新为Mohan的工作。 Finally, we define our code snippet which does the work of updating EmployeeName of the employee with the name of"Martin" to"Mohan". 下面的代码片段 为Team对象展示了一个非常简单的Django模型。 The code snippet below shows a very simple Django model for a Team object. 考虑下面的代码片段 ,它迭代一个Vector中的元素。 Consider the code fragment below, which iterates the elements of a Vector. The code fragment to form the method does not necessarily have to be a set of statements. 如果您熟悉XML,那么XAML的代码片段 看起来会很熟悉。 If you're familiar with XML, then a code snippet of XAML will look very familiar. React组件是可复用的小的代码片段 ,它们返回要在页面中渲染的React元素。 React components are small, reusable pieces of code that return a React element to be rendered to the page. 文本包括可以复制和粘贴的代码片段 、练习和附录,其中包括最重要的技术概念摘要。 The text includes code snippets that can be copied and pasted, exercises, and an appendix with a summary of the most important technical concepts. 下面的代码片段 显示了“monoelvistic”宇宙,只有一个Elvis存在:. The code snippet below shows a“monoelvistic” universe, where only one Elvis can exist:. 开发者设法将这个有用的函数添加到一个小于100行的相对较短的代码片段 中。 Developers managed to add this useful function into a relatively small code fragment with a size of less than 100 lines. React组件是一些小的,可重用的代码片段 ,它返回一个React元素供页面渲染。 React components are small, reusable pieces of code that return a React element to be rendered to the page. 开发人员设法将这个函数添加到尺寸小于100行的相对较小的代码片段 中。 Developers managed to add this useful function into a relatively small code fragment with a size of less than 100 lines. 为了简化示例,我们经常展示没有类或方法定义或显式取消引用的代码片段 。 For conciseness and simplicity in our examples, we often exhibit code fragments without class or method definitions, or explicit dereferencing. 这些组件带有相关的代码片段 ,您可以快速地将它们复制/粘贴到应用程序中,或者在必要时对它们进行调整。 The components come with relevant code snippets you can quickly copy/paste into your app- or tweak them when it's necessary. 此外,许多章节定义了更大的程序,这些章节中出现的代码片段 会互相依赖或是依赖于一些外部文件。 In addition, many chapters define bigger programs, and the pieces of code that appear in them depend on each other or on external files. 下面的代码片段 为Team对象显示了一个非常简单的Django模型。 The code snippet below shows a very simple Django model for a Team object. 这个库已存在了20年,它包含了90年代编写的代码片段 。 This library has been around for 20 years and it contains pieces of code that were written in the 90's. Django严格遵循Don'tRepeatYourself(DRY)原则,因此每个不同的代码片段 或数据仅在一个位置上出现。 Django strictly observes the Don't Repeat Yourself(DRY) principle, whereby every distinct piece of code or data lives in only one place. 有趣的是,当阅读本书引用的代码片段 时,我就碰到几个bug和几个可疑之处。 Interestingly, while reading the code snippets quoted in this book I came across a couple of bugs and a couple of dubious coding practices. 此外,IntelliJIDEA将建议替换在当前类中找到的任何类似的代码片段 。 Additionally, IntelliJ IDEA will propose to replace any similar code fragments found within the current class. 我们将在本教程中讨论的 小代码片段 就是这样一个例子。 The tiny little code snippet we will discuss in this tutorial is one such example.
Display more examples
Results: 115 ,
Time: 0.0192