python-2.7 tag

27 questions


1 answers
155 views
0
Python asks questions about array output

I wrote a source code for 3x3 horsepower. But the output isIt comes out in a way that includes []. 8 1 6 3 5 7 4 9 2 How can I print it out in this format?def Printsquare(m): if m%2!=0: Magic =[[0 fo...

2 years ago

1 answers
131 views
0
How to manage projects for added code by feature

First of all, thank you for reading my question.As in a typical (git version management I've experienced), the version goes up according to the source code modification and feature addition, so I don'...


1 answers
150 views
0
To receive input from Python as an integer

Why can't the code below receive the input value as an integer? From what I looked up, it is correct to use raw_input() but from Python 3.x, raw_input() has changed to input().play = Truewhile play: x...


1 answers
108 views
0
Test the unit using Python Django.test.Client

I would like to test the web page I made using the class client for unit test provided by Jango.from django.conf import settingsfrom django.test import Clientsettings.configure()c = Client()response =...


1 answers
149 views
0
Add login function to flask web app

I don't have any examples right nowㅜㅜI'm trying to write a web with flaskDo not use the login module provided by flask-login or other flasksI have to create a login function by writing it from the beg...


2 answers
142 views
0
Please help me to find the same value in the dictionary in the Python two lists and make one list

ex_list_1 = [{name:kim, age:35, height:185}, {name:Lee, age:15, height:165}] ex_list_2 = [{first_name:kim, nickname:kkk}]When there are two lists of this type, I would like to combine the dict() of ex...


1 answers
128 views
0
Find Python List Elements Question

a = [[0, 0], [1, 0], [0], [1, 1], [0, 0], [0, 1], [1], [1, 0], [0, 1], [1, 0], [1], [0, 0], [1, 1], [0, 1], [0], [0, 1], [0, 1]]minn = 1list= [len(x) for x in a]for b in list: if b == minn: print b...

2 years ago

1 answers
123 views
0
I have a question about implementing Gui using pyqt4.

First of all, there is a sauce that is salty from Python using opencv. The content of the source is, roughly speaking, the source that reads the image img, finds a square inside the img, and recognize...

2 years ago

1 answers
158 views
0
How do I read dynamic data from crawling using python 2.7 requests?

url=https://www.whoscored.com/Players/11119/Show/Lionel-Messires = requests.get(url, headers=headers, proxies=proxies)page_parser = bs4(res.content, html.parser)So we're going to practice bringing Mes...


1 answers
121 views
0
Fill Python Two-Dimensional Array with Random Functions

There is a condition that you declare a two-dimensional array and put a number in it. Horizontal, vertical, and diagonal all have to be 3*3 arrays with a sum of 15.I don't know the process of putting ...

2 years ago
- 1 - »

© 2024 OneMinuteCode. All rights reserved.