PyCharm入门篇:如何创建你的第一个Python项目

您所在的位置:网站首页 project怎么命名项目 PyCharm入门篇:如何创建你的第一个Python项目

PyCharm入门篇:如何创建你的第一个Python项目

2024-07-02 04:31| 来源: 网络整理| 查看: 265

工具:PyCharm社区版

1、打开pycharm,点击new project

2、配置项目目录和python环境

 

 

  3、每日小贴士--点击下一步

每日小贴士Git注释显示了每一行代码起源的详细信息(右键单击四分之一,选择Annotate with Git Blame)。

右键单击注释并选择Show Diff,查看文件当前版本和以前版本之间的差异

p]每日小贴士你可以同时编辑XML/HTML文件中的开始和结束标记

确保选择同步编辑复选框在编辑器I通用I智能键页的设置/首选项对话框ctrl+Alt+SPyCharm

使用Code I Inspect Code为整个项目或自定义范围运行代码分析,并在单独的窗口中检查结果。

要选择几个单词,按住Alt(选项),双击要选择的每个单词

约瑟夫原创

 3、点击close,出现python script

点击code with me--learn more--跳转到:Code With Me: The Collaborative Programming Service by JetBrains--点击GET stated now

# This is a sample Python script. # Press Shift+F10 to execute it or replace it with your code. # Press Double Shift to search everywhere for classes, files, tool windows, actions, and settings. def print_hi(name): # Use a breakpoint in the code line below to debug your script. print(f'Hi, {name}') # Press Ctrl+F8 to toggle the breakpoint. # Press the green button in the gutter to run the script. if __name__ == '__main__': print_hi('PyCharm') # See PyCharm help at https://www.jetbrains.com/help/pycharm/

参考:PyCharm创建第一个python项目_wangmeixi的博客-CSDN博客_pycharm创建一个python项目



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3