乘以特定行的值

发布于 2024-12-22 01:43:14 字数 208 浏览 4 评论 0原文

我是编程新手,但我需要解决这个问题..

我正在使用记事本++,并且我有一个重复1000次的特定行,并且每个行都有不同的值..其中一个看起来像这样:

wp_galpha=(0.2519)

我需要的是通过乘以..例如0.90来减少括号中的数字,那么是否可以在不手动执行的情况下更改(乘以)每个wp_galpha值?提前致谢

I am a noob in programming but I need to work this out..

I am using notepad++, and I have a specific line which repeats 1000s times, and each has a different value.. One of them looks like this:

wp_galpha=(0.2519)

what I need is to reduce the number in brackets by multiplying with.. for example 0.90, so is it possible to change (multiply) every wp_galpha value without doing it manually? Thanks in advance

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

叫思念不要吵 2024-12-29 01:43:14

您可能应该将这些行复制到脚本中,然后在脚本中使用带有反向引用的正则表达式,将值替换为相乘的值。不要认为这可以直接在编辑器中实现。但我可能是错的,因为我不知道记事本++。

You probably should copy those lines into a script and then use regular expressions with back references in your script to replace your values with the multiplied ones. Don't think that this is possible directly in your editor. But I might be wrong as I don't know notepad++.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文