文章目录
Python Learning Notes
1. Check Python Locations
1.1. Win10
下完安装好python后,想查看python的安装位置的几种方法
https://blog.csdn.net/weixin_62375676/article/details/127466029
按下Win+r
(也就是命令提示符),输入cmd
,进入
1.1.1. Python Version
python -V
1.1.2. 查看当前python路径
where python
1.1.3. 利用sys.path
查询Python安装地址
在cmd
下,依次输入
python
import sys
print(sys.path)
2. 安装Library
2.1. install pywifi
在Win10中安装pywifi包
https://jingyan.baidu.com/article/a17d528555e7a0c199c8f261.html
以管理员模式打开Windows PowerShell
,
python -m pip install pywifi
如果安装pywifi提示成功,但 import pywifi 不成功,则需要安装comtypes
python -m pip install comtypes
3. 打印print
3.1. 打印变量variable
print the variable a
with 4 digits
after the point
print(f"variable a = {a:.4f}")