更新时间:2023-12-04 11:52:40
您可以使用 paste 和 print
paste
print
print(paste0("Current working dir: ", wd))
或cat
cat
cat("Current working dir: ", wd)
在 R 中的同一行上打印字符串和变量内容
在同一行上显示变量和字符串(TI-Basic)
如何在 Python 的同一行上打印变量和字符串?