python3学习手册
python3学习手册 简介: Python官网: h�ps://www.python.org Python由Guido van Rossum于1989年底发明,于1991年发行第一版, Python源代码遵循GPL协议 Python是一种解释型、面向对象、动态数据类型、可交互的语言 python2.0于2000-10-16发布,于2020年1月1日停止更新2.x版本, Python-2.7成为最后一个py ①进入交互模式 # python3 #输入python3 回车 >>> #这里可执行python代码,类似shell脚本 >>> print("hello") >>> exit() #退出交互模式 ②执行一次性代码 # python3 -c " #内容如下3行 #!/usr/bin/env python3 # coding=u�-8 print("hello world") # chmod +x test.py #添加可执行权限 # python3脚本文件开头位置要指定以下2行(使用的python解释器及本 源码文件编码) #!/usr/bin/env python3 # coding=u�-8 # python2脚本文件里要指定以下2行0 码力 | 213 页 | 3.53 MB | 1 年前3Python3 基础教程 - 廖雪峰
Python3 基础教程【完整版】 http://www.yeayee.com/ 1/531 Python3 基础教程 Python 教程 ................................................................................................................... 5 Python ......................................................................................... 135 Python3 基础教程【完整版】 http://www.yeayee.com/ 2/531 返回函数 .............................................. ......................................................................................... 267 Python3 基础教程【完整版】 http://www.yeayee.com/ 3/531 多线程 ...............................................0 码力 | 531 页 | 5.15 MB | 1 年前3杜逸先 Python3 的新特性和改进
Python3的新特性和改进 杭州美登科技 杜逸先 目录 CONTENTS Python的现状 Python3的新特性和改进 迁移到Python3 问答环节 1 Python的现状 Python的现状 Python2.7将于2020年1月1日停止维护 Python的现状 Python2.7将于2020年1月1日停止维护 主流Python包陆续终止对Python2的支持 Python的现状 Python的现状 Python2.7将于2020年1月1日停止维护 主流Python包陆续终止对Python2的支持 Python的现状 Python 3.0 2008.11 开启Python3时代 Python的现状 Python 3.0 Python 3.1 2009.6 collections.OrderedDict collections.Counter Python的现状 2 Python3的新特性和改进 ——重要变化 Python3的新特性和改进——重要变化 Text Vs. Data Instead Of Unicode Vs. 8-bit 内容 类型 混合使用 Python3 Text Vs. Data str Vs. bytes ✖ Python2 Unicode Vs. 8-bit unicode Vs. str ✔ Python3的新特性和改进——重要变化0 码力 | 78 页 | 2.28 MB | 1 年前3PyFlink 1.15 Documentation
LOCALLY 1. Install dependency requirements python3 -m pip install -r dev/requirements.txt 2. Conda install pandoc conda install pandoc 3. Build the docs python3 setup.py build_sphinx 4. Open the pyfl to 3.8 You could check your Python version as following: 3 pyflink-docs, Release release-1.15 python3 --version Create a Python virtual environment Virtual environment gives you the ability to isolate a virtual environment using virtualenv To create a virtual environment using virtualenv, run: python3 -m pip install virtualenv # Create Python virtual environment under a directory, e.g. venv virtualenv0 码力 | 36 页 | 266.77 KB | 1 年前3PyFlink 1.16 Documentation
LOCALLY 1. Install dependency requirements python3 -m pip install -r dev/requirements.txt 2. Conda install pandoc conda install pandoc 3. Build the docs python3 setup.py build_sphinx 4. Open the pyfl to 3.8 You could check your Python version as following: 3 pyflink-docs, Release release-1.16 python3 --version Create a Python virtual environment Virtual environment gives you the ability to isolate a virtual environment using virtualenv To create a virtual environment using virtualenv, run: python3 -m pip install virtualenv # Create Python virtual environment under a directory, e.g. venv virtualenv0 码力 | 36 页 | 266.80 KB | 1 年前3Debian 维护者指南
Makefile(shell,命令行界面) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87 8.4 setup.py(Python3,命令行界面) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89 8.5 Makefile(shell,图形界面) Makefile(shell,图形界面) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94 8.6 setup.py(Python3,图形界面) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96 8.7 Makefile(单个二进制软件包) 用户和未来的开发者,描述了使 用 debmake 命令构建 Debian 软件包的方法。 本指南注重描述现代的打包风格,同时提供了许多简单的示例。 • POSIX shell 脚本打包 • Python3 脚本打包 • C 和 Makefile/Autotools/CMake • 含有共享库的多个二进制软件包的打包,等等。 本篇《Debian 维护者指南》可看作《Debian 新维护者手册》的继承文档。0 码力 | 142 页 | 1.11 MB | 1 年前3PyConChina2022-杭州-ARM芯片的Python+AI算力优化-朱宏林
• docker exec -ti torch_bm bash -c "cd /tmp/resnet50 && python3 performance.py” • docker exec -ti torch_bm bash -c "cd /tmp/resnet50 && python3 performance.py --bf16" 首次执行会下载预训练模型 输出执行耗时 PyTorch BF16 • docker exec -ti torch_bm bash -c "cd /tmp/maskrcnn && python3 performance.py” • docker exec -ti torch_bm bash -c "cd /tmp/maskrcnn && python3 performance.py --bf16" • 验证 Mask R-CNN 预测结果 • docker exec exec -ti torch_bm bash -c "cd /tmp/maskrcnn && python3 validate.py” • docker exec -ti torch_bm bash -c "cd /tmp/maskrcnn && python3 validate.py --bf16" 推理时间 FP32 BF16 PyTorch BF16 加速演示 • 测试 Mask R-CNN0 码力 | 24 页 | 4.00 MB | 1 年前3Jupyter Notebook 6.4.4 Documentation
} ], “metadata”: { “kernelspec”: { “display_name”: “Python 3”, “language”: “python”, “name”: “python3” }, “language_info”: { “codemirror_mode”: { “name”: “ipython”, “version”: 3 }, “file_extension”: } ], “metadata”: { “kernelspec”: { “display_name”: “Python 3”, “language”: “python”, “name”: “python3” }, “language_info”: { “codemirror_mode”: { “name”: “ipython”, “version”: 3 }, “file_extension”: } ], “metadata”: { “kernelspec”: { “display_name”: “Python 3”, “language”: “python”, “name”: “python3” }, “language_info”: { “codemirror_mode”: { “name”: “ipython”, “version”: 3 }, “file_extension”:0 码力 | 182 页 | 1.53 MB | 1 年前3Jupyter Notebook 6.2.0 Documentation
} ], “metadata”: { “kernelspec”: { “display_name”: “Python 3”, “language”: “python”, “name”: “python3” }, “language_info”: { “codemirror_mode”: { “name”: “ipython”, “version”: 3 }, “file_extension”: } ], “metadata”: { “kernelspec”: { “display_name”: “Python 3”, “language”: “python”, “name”: “python3” }, “language_info”: { “codemirror_mode”: { “name”: “ipython”, “version”: 3 }, “file_extension”: } ], “metadata”: { “kernelspec”: { “display_name”: “Python 3”, “language”: “python”, “name”: “python3” }, “language_info”: { “codemirror_mode”: { “name”: “ipython”, “version”: 3 }, “file_extension”:0 码力 | 176 页 | 1.51 MB | 1 年前3Jupyter Notebook 6.4.4 Documentation
are on your system, run jupyter kernelspec list: $ jupyter kernelspec list Available kernels: python3 /home/takluyver/.local/lib/python3.6/site- packages/ipykernel/resources bash /home/takluyver/ like in the example above, is this default kernel. The default often does what you want, so if the python3 kernelspec points somewhere else and you can’t start a Python kernel, try deleting or renaming that Session. Default is your system username. MultiKernelManager.default_kernel_name : Unicode Default: 'python3' The name of the default kernel to start MultiKernelManager.kernel_manager_class : DottedObjectName0 码力 | 293 页 | 4.08 MB | 1 年前3
共 962 条
- 1
- 2
- 3
- 4
- 5
- 6
- 97