JIYIK CN >

Current Location:Home > Learning > PROGRAM >

All

Detecting keystrokes in Python

Publish Date:2025/05/06 Author:JIYIK Category:Python

If you need to access hardware like input devices like keyboards, there are modules in Python that can make your life much easier. Using such modules, you can easily perform the tasks you want without having to deal with the complexity of t...

Full

Simulating keyboard input in Python

Publish Date:2025/05/06 Author:JIYIK Category:Python

Python can be used for almost anything. Using Python, we can develop backends for web applications, backends for mobile applications, and APIs using free and open source frameworks such as Django and Flask . In addition, Python programs als...

Full

Move files from one directory to another using Python

Publish Date:2025/05/06 Author:JIYIK Category:Python

Moving files from one directory to another might not sound like a big deal, but sometimes, it helps a lot in manipulating files. This tutorial will show you some ways to move files from one directory to another in Python. shutil.move() Movi...

Full

Comparing two dictionaries in Python

Publish Date:2025/05/06 Author:JIYIK Category:Python

This article will show you how to compare two dictionaries in Python. Comparing two dictionaries in Python using == the operator == The operator in Python can be used to determine whether dictionaries are identical. Here is an example when...

Full

Writing bytes to a file in Python

Publish Date:2025/05/05 Author:JIYIK Category:Python

In this tutorial, we will look at how to write bytes to a binary file in Python. Binary files contain strings of type bytes. When we read a binary file, an object of type bytes is returned. In Python, bytes are represented by hexadecimal nu...

Full

Get file extension in Python

Publish Date:2025/05/05 Author:JIYIK Category:Python

This tutorial shows how to get the file extension from a file name in Python. os.path Extract extension from file using module in Python The Python module os.path pre-makes useful utility functions for manipulating operating system file pat...

Full

Killing a Python process

Publish Date:2025/05/05 Author:JIYIK Category:Python

When programming in Python, sometimes our program gets stuck in an infinite loop. In this case, we need to terminate the program manually. This article will discuss different ways to kill a Python process. Killing a Python process using a k...

Full

Implementing the ReLU function in Python

Publish Date:2025/05/05 Author:JIYIK Category:Python

This tutorial will discuss the Relu function and how to implement it in Python. ReLU function Relu Functions are the foundation of machine learning and are essential when using deep learning. ReLU The term is Rectified Linear Unit an acrony...

Full

Calculating Mahalanobis distance in Python

Publish Date:2025/05/05 Author:JIYIK Category:Python

This tutorial will show you how to find the Mahalanobis distance between two NumPy arrays in Python. Use the function scipy.spatial.distance in the Python library cdist() to calculate the Mahalanobis distance The Mahalanobis distance is a m...

Full

Convert NumPy array to list in Python

Publish Date:2025/05/05 Author:JIYIK Category:Python

Lists and arrays are the two most basic and commonly used collection objects in Python. They are both mutable and are used to store a collection of elements under a common name and each element has a specific location that can be used to ac...

Full

Get a list of time zones using Python

Publish Date:2025/05/05 Author:JIYIK Category:Python

When developing real-world applications, software developers must ensure that the application can support users from both their own country and other parts of the world. Since most countries have different time zones and many people around...

Full

How to read input from stdin in Python

Publish Date:2025/05/05 Author:JIYIK Category:Python

This tutorial discussed stdin the methods of reading input from in Python. You can read directly from the console or from a file name specified in the console. In Python, fileinput.input() use stdin fileinput We can use the read module in P...

Full

Finding the maximum value in a Python dictionary

Publish Date:2025/05/05 Author:JIYIK Category:Python

This tutorial explains how to get a key with the maximum value in Python. Since the method has changed from the previous Python versions, it also lists some sample codes to clarify the concepts. Use operator.itemgetter() the method to get t...

Full

Changing dictionary values in Python

Publish Date:2025/05/05 Author:JIYIK Category:Python

This tutorial will discuss various ways to change the value of a particular key in Python dictionary. We can do this by using the following methods. dict.update() method for cycle. Dictionary Unpacking dict.update() How to change dictionary...

Full

Enumerating a dictionary in Python

Publish Date:2025/05/05 Author:JIYIK Category:Python

The function in Python enumerate() returns an object of enumeration type and adds a counter variable to iterate over a list or other type of collection. It makes looping over such objects easier. When we pass an enumeration object to list()...

Full

Scan to Read All Tech Tutorials

Social Media
  • https://www.github.com/onmpw
  • qq:1244347461

Hottest

Tags

Scan the Code
Easier Access Tutorial