About 58 results
Open links in new tab
  1. What is the difference between 'py' and 'python' in the Windows ...

    Jun 17, 2018 · py is the Python launcher which is a utility that comes with Python installations on Windows. It gets installed into C:\Windows\ so it’s available without requiring PATH modifications.

  2. py是啥意思? - 知乎

    PY代表的是什么,代表着超越物质与精神的男性之间友谊的升华。 你的就是我的,我的就是你的。双方心神合一,进行着深入浅出的交流。 这种东西怎么形容呢? 这种PY的关系,非常类似 …

  3. windows - Python - How do you run a .py file? - Stack Overflow

    Feb 29, 2012 · 4 Since you seem to be on windows you can do this so python <filename.py>. Check that python's bin folder is in your PATH, or you can do c:\python23\bin\python …

  4. What does colon equal (:=) in Python mean? - Stack Overflow

    Mar 21, 2023 · What does the := operand mean, more specifically for Python? Can someone explain how to read this snippet of code? node := root, cost = 0 frontier := priority queue …

  5. 'py' works but not 'python' in command prompt for windows 10

    Sep 17, 2020 · py is itself located in C:\Windows (which is always part of the PATH), which is why you find it. When you installed Python, you didn't check the box to add it to your PATH, which …

  6. cmd - Why do I have to use "py" to execute python commands …

    Oct 18, 2022 · It only worked with this commands py -m pip install numpy py -m pip install matplotlib I searched the internet and found this question telling me to run the command …

  7. how to access python from command line using py instead of …

    Sep 23, 2015 · If you just use py it will start the one that was defined as default. So the official way would be to install Python 3.x, declare Python 2.7 as the default, and the py command will …

  8. python - What is setup.py? - Stack Overflow

    Sep 24, 2009 · setup.py is a Python file, the presence of which is an indication that the module/package you are about to install has likely been packaged and distributed with …

  9. How do I call a function from another .py file? [duplicate]

    First, import function from file.py: from file import function Later, call the function using: function(a, b) Note that file is one of Python's core modules, so I suggest you change the filename of …

  10. python - What is __init__.py for? - Stack Overflow

    The __init__.py file can contain the same Python code that any other module can contain, and Python will add some additional attributes to the module when it is imported. But just click the …