About 728,000 results
Open links in new tab
  1. Examples for string find in Python - Stack Overflow

    Jul 7, 2013 · Python might in general prefer exceptions, but many users expect there to be a non-exception-raising-find-index method as well, especially as that's how it's done in almost every …

  2. How can I find where Python is installed on Windows?

    Mar 15, 2009 · I want to find out my Python installation path on Windows. For example: C:\\Python25 How can I find where Python is installed?

  3. python - How to use find () and find_all () in BeautifulSoup? - Stack ...

    Feb 19, 2020 · This is the information I got of how the beautiful soup function works: Signature: find_all(name, attrs, recursive, string, limit, **kwargs) Help me configure the .find() function.

  4. How to get a string after a specific substring? - Stack Overflow

    Jul 4, 2021 · How can I get a string after a specific substring? For example, I want to get the string after "world" in my_string="hello python world, I'm a beginner" ...which in this case i...

  5. python - How to use to find files recursively? - Stack Overflow

    Similar to other solutions, but using fnmatch.fnmatch instead of glob, since os.walk already listed the filenames: import os, fnmatch def find_files(directory, pattern): for root, dirs, files in …

  6. VS Code can't find Python - Stack Overflow

    Feb 1, 2021 · 5 Go to the Visual Studio Code preferences, and under interpreter, you'll find Interpreter Path, so set that to the path of your Python installation, restart Visual Studio Code, …

  7. python - Find / Slicing Method issue - Stack Overflow

    Mar 17, 2015 · I'm doing an exercise in the python book section: 6.14 Exercises Exercise 6.5 Take the following Python code that stores a string:‘ str = 'X-DSPAM-Confidence: 0.8475' Use …

  8. find vs in operation in string python - Stack Overflow

    Aug 26, 2013 · I need to find pattern into string and found that we can use in or find also. Could anyone suggest me which one will be better/fast on string. I need not to find index of pattern …

  9. python - Find the division remainder of a number - Stack Overflow

    234 How could I go about finding the division remainder of a number in Python? For example: If the number is 26 and divided number is 7, then the division remainder is 5. (since 7+7+7=21 …

  10. virtualenv - Jupyter notebooks in Visual Studio Code does not use …

    I write Python code in Visual Studio Code and run the program from a terminal in which I have activated a virtual environment, and it works fine. However, if I create notebook cells using …