python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Passing multiple arguments to Python script using sys.argv[1] and numpy array. IndexError: list index out of range
I'm working in a small code to receive multiple arguments from an MQTT server and use them to predict another value. I'm showing a simplified code here just to get some help. To pass the arguments to ...
miinch
Votes: 0
Answers: 2
export my output to a text file (python3) line 15 and 30
I want to export the output to this code into a text file. i tried to do this several different ways. sometimes i would have no errors but when i go to open the text file it is blank. i want to save t...
Jay A
Votes: 0
Answers: 1
How to continuously read from stdin (not just once input file is done)?
I have these two scripts:
clock.py
#!/usr/bin/env python3
import time
while True:
print("True", flush=True)
time.sleep(1)
continuous_wc.py
#!/usr/bin/env python3
import sys
def m...
BigBoy1337
Votes: 0
Answers: 2
How to collect all the print content and save them in a txt in Python?
I want to collect all of the print content and save them in a txt file. I use this answer's method to generate and collect logs. Also I use a threading, because in my real environment, get_logs and ma...

haojie
Votes: 0
Answers: 2