10 questions
Hi, how are you?I am a student studying programming.When it comes to data processing, I want to extract n characters from a specific row of a file or m rows after a specific character, store them else...
In an OSX environment, you are using python2, python3.I usually use python2, but I often use python3 for tensorflow, jupyter notebook, etcAfter updating with brew, I was able to confirm that the site-...
This is a code that receives data through serial communication and sends a notification to a messenger using urlapi when data with a value of 80 or more comes more than 5 times in a row.Alerts are int...
I'm writing Python 2.7, and if you run the function below locally, it will run normally.However, if you connect to the ubuntu server and turn it directly from the terminal, the [Errno 8] Exec format e...
from mimetypes import MimeTypesmime = MimeTypes()mime_type = mime.guess_type('C:\SomePath\hangle.hwp')print mime_typeIf you obtain the mine-type of the Korean document from the code above and print ou...
import socketimport jsonimport pymysqlHOST = ''PORT = i = 0list_data =[]s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)s.bind((HOST, PORT))s.listen(1)while True : try : conn,addr = s.accept() ...
Save it to a variable called code to open the file '''def searching(name):code.seek(0, 0)lines = code.readlines()for line in lines: item = line.split() if name in item: return lineprint searching ('N...
I'm a beginner who just entered Python.I want to make a program that filters through Pandas by making a dictionary list into a two-dimensional table, how should I organize this?The list I have is in t...
I'm using Python 2.7 in centos 7.9, but when I installed pip to yum and upgraded, all the pip-related commands are error below... You have to use Python2, but what's wrong with this?Before the pip upg...
Last time, I asked you how to count the same values in a list-dict type of dataConversely, how do you count multiple values of the same key?For your information, ** does not eat in Jaison 2.7.origin =...
© 2024 OneMinuteCode. All rights reserved.