下面的哪里错了?
x = "There are %d types of people." %10
binary = "binary"
do_not = "don't"
y = "Those who know %s and those who %s." % (binary,do_not)
print(x)
print(y)
print("I said %r." % x)
print("I also said: '%s'." % y)
joke_evaluation = "Isn't that ioke so funny!?"
hailarious = False
print(joke_evaluation % hailarious)
w = "This is the left side of..."
e = "a string with a right side."
print(w + e)
python 字符串里的 % 格式化字符数量比后面给的变量多是什么意思?
答案:2 悬赏:70
解决时间 2021-02-22 23:16
- 提问者网友:血樱陌殇
- 2021-02-22 10:05
最佳答案
- 二级知识专家网友:duile
- 2021-02-22 10:27
print(joke_evaluation % hailarious)
全部回答
- 1楼网友:不羁的心
- 2021-02-22 11:43
我不会~~~但还是要微笑~~~:)
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯