消除下标的连字符/下划线

编程入门 行业动态 更新时间:2024-10-27 20:34:50
本文介绍了消除下标的连字符/下划线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

您好。我需要消除X_2的下划线,其中2是下标。代码是什么样的?我在这里有一个样本,但不知道哪个是什么以及如何改变它,因为我确实尝试改变但没有发生任何变化。请帮忙。在此先感谢。

Hi. I need to eliminate the underscore for X_2 where the 2 is a subscript. What is the code like? I have a sample here but can''t figure out which is what and how to change it, as I did try to change but no changes took place at all. Please help. Thanks in advance.

展开 | 选择 | Wrap | 行号 推荐答案

展开 | 选择 | Wrap | 行号

我仍然收到错误。我已经取代了X_2用B3,B4表示B3,B4。就像我在excel专栏中一样。它表示在B4预期的标识符。我需要为它编写一个方法吗? 这就是我所做的: I am still getting an error. I have replaced "X_2" with "B3,B4" as i have in the excel column. It says identifer expected at the "B4". Do I need to have a method written for it? Here''s what I have done: 展开 | 选择 | 换行 | 行号

嗯......是的...你试图为一个字符串分配两个不同的值。 Well... yeah... You are trying to assign two different values to one string. string myValue =(" B3", " B4"); string myValue = ("B3","B4");

你不能同时指定B3和B3。和B4和B4。单个字符串。 此外,这些字符串都不包含下划线 - 那么您期望如何替换不存在的下划线?

You can''t assign both "B3" and "B4" to a single string. Also, neither of these string contain an underscore - so how are you expecting to replace an underscore that doesn''t exist?

更多推荐

消除下标的连字符/下划线

本文发布于:2023-10-31 18:25:52,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1546907.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:下划线   标的   字符

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!