python - Where to write python code in anaconda
问题描述
I have downloaded the anaconda distribution for the python but now I didn't find that where to write python programs like I was writing python code using python IDLE. Please help me to get rid of this problem
Thanks in Advance :)
P.S:- I only have anaconda and I have not downloaded python from its website or I don't have any previous versions of python installed on my system.
解决方案
对于如何使用 anaconda 编写和执行 python 代码,您有几个选择。一种最简单的方法是python
在 Anaconda Prompt(命令行)中简单地键入。这将打开一个交互式 python 界面,您可以在其中键入 python 代码并让它们逐行执行。
如果您想编写更长的 python 代码,最好在任何文本编辑器中键入您的 python 代码并将您的代码保存为your_code_name_here.py
文件,然后在 Anaconda Prompt 中导航到您保存文件的.py
文件夹并键入python your_code_name_here.py
. 这将执行您的代码的全部主体。
或者,Anaconda 发行版附带 Spyder IDE(交互式开发环境)。您应该能够在您的程序中找到 Spyder,并且使用起来应该非常直观,因为您习惯于使用 IDE。
推荐阅读
- docker - 在gitlab中使用`.env`文件的方法是什么继续集成
- webhooks - 如何使用电子邮件或电话号码通过 API 向谷歌聊天发送 DM
- python - 如何在我的网络服务器更改行中制作文本
- python - 对此返回Python感到困惑
- asp.net-core-webapi - 无法使用包含查询字符串的 url 反序列化 xml 节点 - .net core 3.1
- python - 如何在 Python 脚本中正确管理 API 调用限制?
- c# - 来自 vMenu 的控制台消息是什么
- python - Sympy 与 astropy 结合使用单位进行数值求解?
- angular - 从 Angular Material mat-selection-list 中删除选定的项目
- php - 如何在 Laravel 中自定义 Carbon diffForHumans