zl程序教程

您现在的位置是:首页 >  后端

当前栏目

Python还是很重要的,不能丢。学习IF和WHILE

Python学习 不能 还是 重要 if while
2023-09-14 08:59:36 时间
复制代码
number = 23

guess = int(input(Enter an interger : ))

if guess == number:

 print(Congratulations, you guessed it.)

 print((but you do not win any prizes!))

elif guess number:

 print(No,it is a little higher than that)

else:

 print(No,it is a little lower than that)

print(Done)
复制代码
复制代码
number = 23

running = True

while running:

 guess = int(input(Enter an integer : ))

 if guess == number:

 print(Congratulations, you guessed it.)

 running = False

 elif guess number:

 print(No, it is a little higher than that.)

 else:

 print(No, it is a little lower than that.)

 print(Done)
复制代码


python学习之路-装饰器的使用 开发者学堂课程,了解Python语言的基本特性、编程环境的搭建、语法基础、算法基础等,了解Python的基本数据结构,对Python的网络编程与Web开发技术具备初步的知识,了解常用开发框架的基本特性,以及Python爬虫的基础知识。 课程地址:https://developer.aliyun.com/learning/course/601/detail/8739
python学习之路-闭包 开发者学堂课程,了解Python语言的基本特性、编程环境的搭建、语法基础、算法基础等,了解Python的基本数据结构,对Python的网络编程与Web开发技术具备初步的知识,了解常用开发框架的基本特性,以及Python爬虫的基础知识。 课程地址:https://developer.aliyun.com/learning/course/601/detail/8737
python学习之路- sort 开发者学堂课程,了解Python语言的基本特性、编程环境的搭建、语法基础、算法基础等,了解Python的基本数据结构,对Python的网络编程与Web开发技术具备初步的知识,了解常用开发框架的基本特性,以及Python爬虫的基础知识。 课程地址:https://developer.aliyun.com/learning/course/601/detail/8736
python学习之路-递归 简介: 开发者学堂课程,了解Python语言的基本特性、编程环境的搭建、语法基础、算法基础等,了解Python的基本数据结构,对Python的网络编程与Web开发技术具备初步的知识,了解常用开发框架的基本特性,以及Python爬虫的基础知识。 课程地址:https://developer.aliyun.com/learning/course/601/detail/8731
python学习之路-命名空间 开发者学堂课程,了解Python语言的基本特性、编程环境的搭建、语法基础、算法基础等,了解Python的基本数据结构,对Python的网络编程与Web开发技术具备初步的知识,了解常用开发框架的基本特性,以及Python爬虫的基础知识。 课程地址:https://developer.aliyun.com/learning/course/601/detail/8731