Python 语言输出两行句子:'he is a' 和 'she is b'
print('he is a')
print('she is b')
本代码使用 Python 的 print() 函数,分别输出两行句子:'he is a' 和 'she is b'。
解释:
print()函数用于在控制台中输出内容。- 使用单引号 '...' 包裹字符串,表示要输出的文字内容。
- 每行代码
print(...)会输出一行文字。
原文地址: https://www.cveoy.top/t/topic/otTM 著作权归作者所有。请勿转载和采集!