python-2.x tag

5 questions


1 answers
63 views
0
How do I output commas per thousand units in numeric output?

Usually, when you write a large number, you don't write 100,000 but you mark it like 100,000How do I do this when I print out numbers on Python?I'm using Python 2.6.I want readability better than fast...

2 years ago

1 answers
43 views
0
I have a question about the Python procession.

Hello, I'd like to ask you a question about the procession. For example, if the order of 'a', 'b', 'c', 'd', and 'e' is changed in the code below, I want the order of elements in the list to be connec...

2 years ago

1 answers
48 views
0
One-dimensional matrix manipulation inside a two-dimensional pie line

We're working on a code that clusters with a pie line.First, the initial data is a=[1,2,13,14,16,25,54,68,88,94,101,110,114,122,132,165,170] Assuming that it looks like this, I wrote the clustering co...

2 years ago

1 answers
44 views
0
Python Exception Handling Rise Lecture Questions

#-*- coding:utf-8 -*-school = {'1 class' : [172, 185, 193, 177, 196], '2 class' : [165, 173, 191, 189, 178]}for class_number, students in school.items(): for student in students: if student>190: ...

2 years ago


© 2024 OneMinuteCode. All rights reserved.