python tag

Python is a high-level, interpreted, general-purpose programming language. Its design philosophy emphasizes code readability with the use of significant indentation.

Python is dynamically-typed and garbage-collected. It supports multiple programming paradigms, including structured (particularly procedural), object-oriented and functional programming. It is often described as a "batteries included" language due to its comprehensive standard library.

Guido van Rossum began working on Python in the late 1980s as a successor to the ABC programming language and first released it in 1991 as Python 0.9.0. Python 2.0 was released in 2000 and introduced new features such as list comprehensions, cycle-detecting garbage collection, reference counting, and Unicode support. Python 3.0, released in 2008, was a major revision that is not completely backward-compatible with earlier versions. Python 2 was discontinued with version 2.7.18 in 2020.

Python consistently ranks as one of the most popular programming languages. It is used by many organizations and companies. Pixar, Disney, Instagram and the developers of the Linux Kernel are among many of it's high-profile users, which includes many developers of Free and Open source software.

Reference: WIKIPEDIA

4650 questions


1 answers
29 views
0
Listing Elements in a Dictionary

per node retrieved by dictionary using nx.short_path_lengthI would like to extract the distance from the starting point as a list, but the code below is There is an error.What should I do?d=nx.shortes...

2 years ago

1 answers
124 views
0
KeyError: ('', '') when making migrations cannot be resolved

I am developing a web system at Python 3, Django.We are developing it by checking the operation locally and then deploying it to a remote server.If there is a change in the model class, makemigratinon...

2 years ago

1 answers
30 views
0
extract a partial match from the list

['AAA_1p', 'AAA_2p', 'BBB_1p', 'CCC_1p', 'CCC_2p', 'CCC_3p']From the list above ['AAA_2p', 'BBB_1p', 'CCC_3p']#Maximum number['AAA_2p', 'BBB_1p', 'CCC_2p'] #2p, 1p (ignore 3p)I want to take out two pa...

2 years ago

1 answers
27 views
0
I want to make this picture with a turtleneck.

I would like to create the diagram below using the for, while, if syntax, but I don't understand the code very well.Could you please let me know?A 2x2 grid line is drawn like a rice field, and an equi...

2 years ago

2 answers
64 views
0
I want Python to get the executable path from the process ID.

Thank you for your help.I want Python to get the path of the executable from the process ID.The process ID must have been obtained in some way.So, as far as I've looked into it, it seems that it can b...

2 years ago

1 answers
45 views
0
How to Extract a Specific Column Value from a Pandas DataFrame in One of Multiple Candidates

The following pandas DataFrames are available:import pandas as pdimport numpy as npdf=pd.DataFrame(np.range(30).reshape(10,3), columns=pd.Index(['one', 'two', 'three')))To get a row with a number of 2...

2 years ago

1 answers
88 views
0
Japanese notation in matplotlib in networkx

This is a rudimentary point, but how can I use networkx to put matplotlib in Japanese?I imported Japanese-matplotlib, but it turned into tofu.I would appreciate your advice.#coding=UTF-8# function dec...

2 years ago

1 answers
32 views
0
I want Python to sort the vertical numbers in the text file in descending order and print the results to a command prompt.

I'm a Python beginner.I practice putting two functions in a program to load a text file and eventually aligning the numbers in the text files arranged vertically in order of separation from the top to...

2 years ago

2 answers
44 views
0
How to display the time in the desired format

I would like to create a time column (%H:%M) from the data frame by pandas, with an hour column of 0-23 and a minute column of 0-60.However, it doesn't work because both the hour and minute are int ty...

2 years ago

1 answers
40 views
0
Index reference error in python3

This is a program that makes English wordsInput is 7boxphotoaxisdishchurchleafknifeThat's it.input_line=int(input())words_spell=[list(input()) for i in range(input_line)]for i in range (input_line): #...

2 years ago
« - 54 - »

© 2024 OneMinuteCode. All rights reserved.