print(numlist.pop(2)+" has been removed")为以下任何一项:
明确
int到
str转换:
print(str(numlist.pop(2)) + " has been removed")
使用
,代替
+:
print(numlist.pop(2), "has been removed")
字符串格式:
print("{} has been removed".format(numlist.pop(2)))
欢迎分享,转载请注明来源:内存溢出
print(numlist.pop(2)+" has been removed")为以下任何一项:
明确
int到
str转换:
print(str(numlist.pop(2)) + " has been removed")
使用
,代替
+:
print(numlist.pop(2), "has been removed")
字符串格式:
print("{} has been removed".format(numlist.pop(2)))
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)