从'A'-'Z'生成一个字符序列 [英] Generate a sequence of characters from 'A'-'Z'
本文介绍了从'A'-'Z'生成一个字符序列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我可以像这样制作一个数字序列:
I can make a sequence of numbers like this:
s = seq(from=1, to=10, by=1)
如何从A-Z组成字符序列?这不起作用:
How do I make a sequence of characters from A-Z? This doesn't work:
seq(from=1, to=10)
推荐答案
使用LETTERS
和letters
(分别用于大写和小写).
Use LETTERS
and letters
(for uppercase and lowercase respectively).
这篇关于从'A'-'Z'生成一个字符序列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文