首页 > 编程语言 >python39

python39

时间:2022-12-16 13:11:22浏览次数:50  
标签:语句 Python letter pass print python39

Python pass 是空语句,是为了保持程序结构的完整性。

pass 不做任何事情,一般用做占位语句。

Python 语言 pass 语句语法格式如下:

pass

测试实例:

实例

#!/usr/bin/python # -*- coding: UTF-8 -*- # 输出 Python 的每个字母 for letter in 'Python': if letter == 'h': pass print '这是 pass 块' print '当前字母 :', letter print "Good bye!"

标签:语句,Python,letter,pass,print,python39
From: https://www.cnblogs.com/chenyutong0321/p/16987100.html

相关文章