小编med*_*ter的帖子

如何在Rmarkdown中使用拼写检查?

我想用Rmarkdown写一份报告.但是,我有点担心我的拼写.我希望我的Rstudio中安装了一个包可以自动帮我拼写检查.

那么,是否有这样的包或有办法解决这个问题?

r spelling rstudio r-markdown

35
推荐指数
1
解决办法
2万
查看次数

为什么使用%r的这两个输出之间的差异是python中的单引号和双引号

binary = "binary"
do_not = "don't"
x = "There are %s types of people." % binary
y = "Those who know %s and those who %s." % (binary, do_not)

print "I also said: %r." % y
print "I also said: %r." % x   
Run Code Online (Sandbox Code Playgroud)

这是学习Python的练习.我正在尝试理解'%r',所以我尝试了上面的两个版画.输出是

I also asid: "Those who know binary and those who don't.".
I also said: 'There are binary types of people.'.
Run Code Online (Sandbox Code Playgroud)

现在我想知道为什么这两个印刷品之间的区别是双引号和单引号?谢谢你的帮助.

python

1
推荐指数
1
解决办法
463
查看次数

标签 统计

python ×1

r ×1

r-markdown ×1

rstudio ×1

spelling ×1