python语法解释
question_num = 5, num_1 = 7, num_2 = 9
statement = '#%s: %s x %s = ' % (question_num, num_1, num_2)
语句语法是什么意思?请说明该语法如何工作?
question_num = 5, num_1 = 7, num_2 = 9
statement = '#%s: %s x %s = ' % (question_num, num_1, num_2)
What is the meaning of the statement syntax? Please explain how does this syntax work?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这里
%s
充当数据的占位符(变量)。甚至有更好的方法可以使用F-string或格式
方法。Here
%s
acts as a placeholder of your data (variable). There are even better ways to do same like using f-string orformat
method.