Python学习之基础知识

1. 格式化输出 user_1='韩梅梅' user_2='李雷' print('{}对{}说:"hello"'.format(user_1,user_2)) 控制台输出: php D:\pythoncode\venv\Scripts\python.exe D:/pythoncode/1.py 韩梅梅对李雷说:"hello" Process finished with exit code 0
相关文章
相关标签/搜索