我想通过使用OOP来提高我的Fortran代码的可读性。 我最终得到了相当复杂的派生类型,例如:a%b%c%d%e,在模块mymod中定义。 现在,在一个子程序我做 subroutine test
use mymod, only: a
! lots of unrelevant stuff, especially with a%b%c%d%e.
end subroutine
我有一个带2个圆圈的SVG。事实上,他们只使用一个称为s1的“def”。如何从一个圆圈改变属性(使用)。例如,我想在使用特定的“use”元素时为元素s1设置不同的类。 <svg viewBox = "0 0 1000 1000" version = "1.1">
<defs>
<!-- A circle of radius 200 -->
<circle id = "
我有一个包含(使用)两个模块(MyA.pm和MyB.pm)的perl脚本(MyTest.pl)。 我有的问题是,模块A也必须包括模块B,但这似乎并没有像.pl文件中已包含的那样工作。 MyTest.pl use MyA;
use MyB;
print hello(); # defined in MyB
MyA.pm use MyB;
print hello(); # defined in