| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 179 人关注过本帖
标题:新手报到:Pycharm新建项目自动出现的这段代码是什么意思?有什么作用?
只看楼主 加入收藏
zyxyklh
Rank: 1
来 自:学校
等 级:新手上路
帖 子:31
专家分:0
注 册:2008-7-8
结帖率:66.67%
收藏
已结贴  问题点数:20 回复次数:1 
新手报到:Pycharm新建项目自动出现的这段代码是什么意思?有什么作用?
# 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.
搜索更多相关主题的帖子: Pycharm script 出现 the 代码 
2023-11-08 17:27
sheeboard
Rank: 20Rank: 20Rank: 20Rank: 20Rank: 20
等 级:版主
威 望:16
帖 子:79
专家分:442
注 册:2023-2-16
收藏
得分:20 
运行模板,一般都默认有一个main作为程序运行的开始。
2023-11-08 18:58
快速回复:新手报到:Pycharm新建项目自动出现的这段代码是什么意思?有什么作用 ...
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.014560 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved