Development

如何在Python3中构造“for循环” — step-by-step Python tutorial on Progressive Robot

如何在Python3中构造“for循环”

在计算机编程中,运用循环语句可以让我们自动化、重复多次执行相似的任务。在这个教程里,我们将介绍Python中的for循环 一个for循环,对于“代码的重复执行”的实现,是基于循环计数器或循环变量。这意味着:最常使用for循环的情况,是在进入循环之前已经知道需要重复的次数。这与“以终止条件决定何时终止循环”的 while 循环 不同。

Read more
Built-in Python 3 Functions for Working with Numbers — step-by-step Python tutorial on Progressive Robot

Built-in Python 3 Functions for Working with Numbers

This tutorial will go through a few of the built-in functions that can be used with numeric data types in Python 3. Becoming familiar with these methods can give you more flexibility when programming. We’ll go over the following functions: abs() for absolute value, divmod() to find a quotient and remainder simultaneously, pow() to raise a number to a certain power, round() to round a number to a certain decimal point, sum() to calculate the sum of the items in an iterable data type.

Read more
How To Test a Node.js Module with Mocha and Assert — step-by-step Javascript tutorial on Progressive Robot

How To Test a Node.js Module with Mocha and Assert

Testing is an integral part of software development. With the right test setup, this process can be automated, saving a lot of time. In this article, you’ll write tests for a Node.js TODO list module. You will set up and use the Mocha test framework to structure a series of integration tests. Then you’ll use the Node.js assert module to create the tests themselves. Finally, you will try out testing with asynchronous code, and use hooks to prepare your test fixtures and environments.

Read more
Comment démarrer avec la librairie Requests en Python — step-by-step Python tutorial on Progressive Robot

Comment démarrer avec la librairie Requests en Python

Dans de nombreuses apps, il est normal de se connecter à divers services tiers en utilisant des API. Lorsque vous utilisez ces API, vous pouvez accéder à des données telles que des informations météorologiques, des résultats sportifs, des listes de films, des tweets, des…

Read more
如何在Ubuntu 18.04上安装Python 3并建立本地编程环境 — step-by-step Linux tutorial on Progressive Robot

如何在Ubuntu 18.04上安装Python 3并建立本地编程环境

Python是一种灵活多样的编程语言。它的用途广泛,在脚本、自动化、数据分析、机器学习和后端开发方面都具有优势。Python于1991年首次发行,名字的灵感来源于英国喜剧团体“Monty Python”,因此Python开发团队希望让Python用起来很有趣。易于安装配置、代码风格相对简单直接、有即时的反馈和报错,这些特性让Python成为编程初学者的一个很好选择,也同样适合有经验的程序员。[Python…

Read more
How To Build Forms in React — step-by-step Javascript tutorial on Progressive Robot

How To Build Forms in React

Since most React applications are single page applications (SPAs), web forms usually do not submit the information directly from the form to a server. Instead, they capture the form information on the client-side and send or display it using additional JavaScript code. In this tutorial, you’ll build forms using React Hooks and state objects. By the end of this tutorial, you’ll be able to make a variety of forms using text inputs, checkboxes, select lists, and more.

Read more
How To Work with the Box Model in CSS — step-by-step DevOps tutorial on Progressive Robot

How To Work with the Box Model in CSS

Every HTML element is organized in a rendered HTML document as a rectangular shape, and the box model is the rule set a browser uses to determine an element’s size and how it interacts with other elements. In this tutorial you will use the margin, padding, border, width, and height properties, which are the primary properties the box model uses. You will also work with the box-sizing properties to understand how the box model can be changed.

Read more
CHAT