1、Python3.8.5 安装路径:C:\Program Files\JetBrains\PyCharm Community Edition 2020.3\bin
下载地址:http://www.jetbrains.com/pycharm/download/#section=windows
2、anacond3 安装路径: C:\ProgramData\Anaconda3
(包含了:jupyter,spyder等)安装程序为:Anaconda3-2020.11-Windows-x86_64.exe,下载地址:Index of /anaconda/archive/ | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror
https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/
2020年12月6日初学python 命令执行记录:程序开始,输入“cmd",进入DOS命令窗口
窗口交互信息如下(屏幕信息 输入命令 注释:)
Microsoft Windows [版本 10.0.18363.1198]
© 2019 Microsoft Corporation。保留所有权利。
C:\WINDOWS\system32>conda activate C:\ProgramData\Anaconda3 因为安装的是Anaconda中带的python版本,python处于conda环境中,使用python需要激活;C:\ProgramData\Anaconda3,为python.exe的路径)否则会出现提醒:Warning:
This Python interpreter is in a conda environment, but the environment has
not been activated. Libraries may fail to load. To activate this environment
please see https://conda.io/activation
(base) C:\WINDOWS\system32> cd C:\ProgramData\Anaconda3 命令:进入python.exe目录
(base) C:\ProgramData\Anaconda3>python 命令:运行python.exe
Python 3.8.5 (default, Sep 3 2020, 21:29:08) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32
Type “help”, “copyright”, “credits” or “license” for more information. 显示python 版本号等信息
print(“hellow,world”)命令:测试第一个python小程序,出现“>>>”符号,表示进入python程序环境中
hellow,python 显示输出的结果。import this 这个是一个特殊命令,
The Zen of Python, by Tim Peters显示python之禅的诗文,
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren’t special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you’re Dutch.
Now is better than never.
Although never is often better than right now.
If the implementation is hard to explain, it’s a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea – let’s do more of those!
exit() 退出python 程序,还可以直接用ctrl+Z
(base) C:\ProgramData\Anaconda3> >>>符号消失,表示已退出python。
在C盘下建一个文件夹命名为“d”,在文件夹d中,建立一个写字板文件,输入字符:print(“hellow,python!”),保存为后缀为.py的文件。
(base) C:\ProgramData\Anaconda3> cd c:\d命令:进入文件所在路径
(base) c:\d>python hellow.py命令:用python执行hellow.py 文件
hellow ,python!屏幕显示文件执行结果。
(base) c:\d>回到当前目录
原文链接:http://note.youdao.com/noteshare?id=28d826a7d75086e96175d99bee1cfce7&sub=A534B70BCF854A839A5CBAC9BF03EF26