135201
You will be muted until you read the rules. Read them! @Rules_for_Python A group about the Python programming language. Offtopic things go here: @pythonofftopic Resources to learn python: @pythonres Group for Hy: @hylang Selenium: @SeleniumPython
I want create chatbot with Pytorch , Can anyone guide me in this section?
Читать полностью…
Python groups in other languages
(⚠️Not managed by us ‼️)
Amharic @python_amharic
Arabic @arabipython
Azerbaijani @azepug
Chinese @pythonzh
French @python_francais
German @pythonde
Hebrew @pythonisraelHindi @pyhindi_ot
Tamil @pythontamilcommunity
Indonesian @pythonid
Italian @python_ita @pythonita
Kazakh @python_kz
Malaysia @pythonmalaysia
Persian @pyfarsi
Portuguese @pythonbr
Russian @ru_python_beginners @ru_python @python_scripts
Spanish @PythonEsp
Swahili @python_eafrica
Turkish @python_tr
Uzbek @python_uz
If you have an active and well managed group that you want to be listed there, ask in the Meta group, link in the rules page.
Step 1: Open a browser
Step 2: Write down https://google.com or https://duck.com and press Enter
Step 3: In the search box write down the same words you asked here
Step 4: Read the firsts results
If you have a list of arguments, you need a way to apply them several times to the same function, for which some kind iteration is necessary. Most people perceive loops to be the simplest way to do that. But you don't need to create functions for that.
Читать полностью…
Same thing
But multiproccessing is used for CPU bound tasks and multithreading and asyncio are used for I/O bound
If they all do the same steps, then same function applies to all
Just call the function with diffrent arguments (row data)
Then use 1 function and give it each row every time in a loop
Читать полностью…
Use a loop to dynamically handle rows & functions when you dont know how many of those will be there.
Store your camera functions in a list & iterate to submit each functions to executor
A list of functions appears to be unnecessary, but I'm sure there's a way to do it that way, too.
Читать полностью…
This group is to help you on specific issues you have on YOUR code, so you have to show the code you wrote and explain where and why you are stuck... as simple as that
Читать полностью…
"Hi", "hello" and all other socializing goes to @pythonofftopic! Feel free to chat there, and ask for help with Python code here. Don't forget to delete your message from this group!
Читать полностью…
Yes, same function applies to all, you just call it with diffrent arguments
Читать полностью…
No...they must work in parallel. Some iteration can freeze one of cameras because of bad picture or something
Читать полностью…
Pass the same function with different arguments then.
Читать полностью…
Thats not what i asked
I asked if every row needs to do same proccessing steps?
Does every row has the same proccessing logic?
I mean, for every row you execute same steps?
You do not want to run a function for each row in a table
Instead, use a resource pool (like 10 workers) and delegate task to each one
Hello, guys. Who knows how to bypass cloudflare without using selenium ? I used cfscrape and cloudscraper but they recently died:(. Any ideas? I need to download one website
Читать полностью…
This is code works good right now.
4 functions
But what if the I don't know how many rows on a table? 50 instead of 4.
Of course I cannot defining it manually everytime
with concurrent.futures.ThreadPoolExecutor(max_workers=4) as executor:Читать полностью…
futures = [executor.submit(get_camera_1), executor.submit(get_camera_2), executor.submit(get_camera_3), executor.submit(get_camera_4)
]
Rows in a table store arguements
I want to go through the rows by loop, defining functions while looping, get the list of functions and run them in parallel