About 530,000 results
Open links in new tab
  1. 'Python not found' despite having been installed [duplicate]

    Feb 28, 2021 · The Python application path, which is the folder where you originally installed Python; and The Python Scripts path. The Scripts folder should be located within the Python application path.

  2. Accessing Microsoft Sharepoint files and data using Python

    Jan 30, 2020 · Here's the starter code for connecting to share point through Python and accessing the list of files, folders and individual file contents of Sharepoint as well.

  3. python - How to check if a value exists in a dictionary ... - Stack ...

    In Python 3, you can use "one" in d.values() to test if "one" is among the values of your dictionary. In Python 2, it's more efficient to use "one" in d.itervalues() instead. Note that this triggers a linear scan through the values of the dictionary, short-circuiting as soon as it is found, so this is a lot less efficient than checking whether a key is present.

  4. python - Find the current directory and file's directory - Stack …

    How do I determine: the current directory (where I was in the shell when I ran the Python script), and where the Python file I am executing is?

  5. python - if/else in a list comprehension - Stack Overflow

    How do I convert the following for-loop containing an if/else into a list comprehension? results = [] for x in xs: results.append(f(x) if x is not None else '') It should yield '' if x is None...

  6. python .replace () regex - Stack Overflow

    python .replace () regex [duplicate] Asked 13 years ago Modified 2 years, 6 months ago Viewed 1.0m times

  7. python - What exactly should be set in PYTHONPATH? - Stack …

    Here is what I learned: PYTHONPATH is a directory to add to the Python import search path "sys.path", which is made up of current dir. CWD, PYTHONPATH, standard and shared library, and customer library.

  8. python - What's the pythonic way to use getters and setters?

    I'm doing it like: def set_property(property,value): def get_property(property): or object.property = value value = object.property What's the pythonic way to use getters and setters?

  9. python - How to stop one or multiple for loop (s) - Stack Overflow

    You'll need to complete a few actions and gain 15 reputation points before being able to upvote. Upvoting indicates when questions and answers are useful. What's reputation and how do I get it? Instead, you can save this post to reference later.

  10. python - Errno 13 Permission denied - Stack Overflow

    Jul 16, 2020 · For future searchers, if none of the above worked, for me, python was trying to open a folder as a file. Check at the location where you try to open the file, if you have a folder with exactly the same name as the file you try to open (the file extension is part of the file name).