$python3 f2.pyHello from Fortran! a= 4 とすれば動くでしょう。 使用したコード f2.py importhellohello.foo(4) hello.f90 subroutinefoo(a)integer::awrite(*,*)"Hello from Fortran!"!ここで文字を出力write(*,*)"a=",a!ここで整数を出力endsubroutinefoo ...