No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
shutil.copyfile which has a default buffer size of 16384 bytes , as u kno copying wil take more time.. Below is the code that increases the buffer size as 10 MB.. u can copy files that are in Gbs.. import os import shutil def copyFile(src, dst, buffer_size=10485760, perserveFileDate=True): # Check … |
|
I know to access tasklist of our machine can be done through os.popen('tasklist').read(). Is there any way to read the tasklist (taskmanager data) of other systems connected in a network using Python? Just reading them will be fine. Purpose: Main objective of this is to write a script which will … |
|
i have been looking around and its hard to find what i want. I am able to add context menu item to a FOLDER by doing this: [HKEY_CLASSES_ROOT\Directory\shell\Command] @="TestRightClick:" [HKEY_CLASSES_ROOT\Directory\shell\Command\Command] @="myExe.exe %1" I need to have "context menu for all the files in folders of a particular directory". context menu … |
|
Re:
num_trades = int(input("Number of trades for today?")) for i in range(1, num_trades + 1): action = input("Trade number", i ,"(buy/sell)?") num_shares = int(input("Number of shares to buy?")) price_per_share = float(input("Price per share?")) I'm getting a TypeError on the line "action = input("Trade number", i ,"(buy/sell)?")" Help Thanks |