GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Girls-In-AI/machine_learning_diary/base/if/if.md at master · girls-in-ai/Girls-In-AI

Expand file tree

/

if.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
49 lines (24 loc) · 1.22 KB
/

if.md

Copy path

File metadata and controls

49 lines (24 loc) · 1.22 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

if 条件执行

欢迎大家回到 Machine Learning Diary👏

今天来带大家学习if 条件执行。

学习内容:

  • 一般条件执行
  • 分支执行
  • 链式条件执行
  • 嵌套条件执行

if 一般条件执行

格式很简单就是:如果(满足这个条件), 就(怎么怎么样)

if else 分支执行

如果(满足这个条件), 就(怎么怎么样), 否则就(怎么怎么样)

链式条件执行

如果存在两个以上的条件,就需要多个if了。 如果,就;如果,就;如果,就······

第二个如果的时候就用elif, 即else if的缩写

嵌套条件执行

这个就是一个条件嵌套到另一个条件语句中 如果,就(如果,就); 否则就

👩好啦,今天的课程就到这里啦!咱们下次见!~

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.