---
+0 Take care of the comma (in Python)
ROBIN DONG 发于 2021年04月29日 12:06
| 点击: 571
| 展开摘要
Think about the result of this snippet:
def concat(a, b):
return a + "_" + b
left = "hello",
right = "world"
print(concat(left, right))
Should be “hello_world”, right?
But the actual result
查看全文: http://www.udpwork.com/item/17653.html
def concat(a, b):
return a + "_" + b
left = "hello",
right = "world"
print(concat(left, right))
Should be “hello_world”, right?
But the actual result
查看全文: http://www.udpwork.com/item/17653.html