工具: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项目

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐