简体   繁体   English

(wx)Maxima:创建一个字符列表(作为字符串)而不必单独引用每个字符?

[英](wx)Maxima: create a list of characters (as strings) without having to quote each character, individually?

I frequently find myself needing to create a list of characters, eg我经常发现自己需要创建一个字符列表,例如

xopts:["p", "q", "r", "s", "t", "u", "v", "x", "y", "z"]; 

and was looking for a way to produce these lists, without having to wrap every character in " 's.并且正在寻找一种生成这些列表的方法,而不必将每个字符都包装在"中。

Recalled charlist immediately after posting.发布后立即召回charlist

Eg, the list in the post could be created by:例如,帖子中的列表可以通过以下方式创建:

xopts:charlist("pqrstuvxyz"); 

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在for循环中搜索字符串,而不在循环中单独引用每个字符串 - Search for strings in a for loop without referencing each string individually in the loop 通过用所有其他字母字符替换字符串中的每个字符而获得的字符串列表 - List of Strings obtained by replacing each character in a String by all other alphabet characters 从具有“+”字符的字符串创建字符串列表。 使用“+”分隔列表 - Create a list of strings from a string having '+' character. Using '+' to separate the lists 如何创建一个递归函数以返回单个参数(字符串列表)的副本,但每个字符在每个位置都重复? - How to create a recursive function that returns a copy of a single parameter (a list of strings), but with every character duplicated in each place? 如何分别用引号字符分隔的字符串中的单词? - How can I individually quote words in a string separated by pipe characters? 具有特殊字符的分割字符串,也没有双引号 - Split strings having special characters, also without double quotes 将一行字符串转换为一个字符串列表,而无需获取换行符 - convert a line of strings into a list of strings without getting newline character 如何对齐字符上的一组字符串,每边有给定数量的字符(用“x”替换缺失的字符)? - How to align a set of strings on a character, with a given number of characters on each side (replace missing characters with “x”)? 根据每个字符串中的字符拆分字符串列表( Python ) - Splitting list of strings based on a character in each string ( Python ) 在列表中,如何将每个字符串(带有混合特殊字符)分隔为单个字符? - In a list, how to separate each string (with mixed special characters) into a single character?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM