Python

How to Parse CSV Files in Python — step-by-step Python tutorial on Progressive Robot

How to Parse CSV Files in Python

URL: https://www.progressiverobot.com/parse-csv-files-in-python/ CSV files are used a lot in storing tabular data into a file. We can easily export data from database tables or excel files to CSV files. It's also easy to read by humans as well as in the program. In this tutorial, we will learn how to parse CSV files in Python. […]

Read more
How to Block Unwanted SSH Login Attempts with PyFilter on Ubuntu 16.04 — step-by-step Linux tutorial on Progressive Robot

How to Block Unwanted SSH Login Attempts with PyFilter on Ubuntu 16.04

PyFilter aims to filter out all of the illegitimate login requests to your server and block them if too many are sent. In this tutorial, you’ll install and configure PyFilter to block SSH requests. Then you’ll install PyFilter as a service, and optionally configure cross-server ban syncing, a feature that lets multiple servers share the list of banned IP addresses, and enable PyFilter to record location data about an IP address. Finally, you’ll explore how to un-ban IP addresses.

Read more
如何在Python 3中使用注释 — step-by-step Python tutorial on Progressive Robot

如何在Python 3中使用注释

“注释”是存在于电脑代码中的”被编译器和解释器忽略”的那些文本行。在程序中使用注释将使得代码更易读(方便人去理解代码),因为注释能提供有用的信息去解释代码的每一部分是做什么的。 取决于在程序中的不同目的,你的注释可以是给自己的标记和提醒,或者是帮助其它程序员去理解你的代码。 总的来说,当你写程序或修改程序的过程中,当时写下的注释最为有用。而之后补上的注释长远看来将会没那么有用,因为一段时间之后,你会很容易忘记之前的想法。

Read more
How To Deploy and Manage Your DNS using OctoDNS on Ubuntu 18.04 — step-by-step Linux tutorial on Progressive Robot

How To Deploy and Manage Your DNS using OctoDNS on Ubuntu 18.04

OctoDNS is an infrastructure-as-code tool that allows you to deploy and manage your DNS zones using standard software development principles, including version control, testing, and automated deployment. In this tutorial, you’ll install and configure OctoDNS, create a basic DNS configuration, and begin deploying DNS records to a live provider.

Read more
How To Convert Strings to Integers in Python 3 — step-by-step Python tutorial on Progressive Robot

How To Convert Strings to Integers in Python 3

Strings can be converted to integers by using the int() method. If your string does not have decimal places, you’ll most likely want to convert it to an integer by using the int() method. In this quick tutorial, you’ll learn how to convert a string to an integer.

Read more
CHAT