如何输出指针的值得到Popen的输出

帐号:密码:下次自动登录{url:/nForum/slist.json?uid=guest&root=list-section}{url:/nForum/nlist.json?uid=guest&root=list-section}
贴数:11&分页:ddang发信人: dingxw (ddang), 信区: Python
标&&题: os.popen运行命令行如何获取错误信息
发信站: 水木社区 (Wed Oct 13 10:54:06 2010), 转信 && info = os.popen(command).read()这样只能得到command打印出来的信息,但是如果这个command运行出错了,就得不到错误信息,这种情况下info是空的。怎么才能获取这个错误信息呢?谢谢。
-- && ※ 来源:·水木社区 ·[FROM: 114.255.30.*]
引车卖浆者流玩linux发信人: analyz (引车卖浆者流玩linux), 信区: Python
标&&题: Re: os.popen运行命令行如何获取错误信息
发信站: 水木社区 (Wed Oct 13 11:24:30 2010), 转信 && mytask = subprocess.Popen(cmd, shell=True,stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) && stdstr= mytask.stdout.read()
【 在 dingxw (ddang) 的大作中提到: 】
: info = os.popen(command).read()这样只能得到command打印出来的信息,但是如果这个command运行出错了,就得不到错误信息,这种情况下info是空的。怎么才能获取这个错误信息呢?谢谢。
&&&& -- && ※ 修改:·analyz 于 Oct 13 11:25:53 2010 修改本文·[FROM: 222.126.194.*]
※ 来源:·水木社区 newsmth.net·[FROM: 222.126.194.*]
ddang发信人: dingxw (ddang), 信区: Python
标&&题: Re: os.popen运行命令行如何获取错误信息
发信站: 水木社区 (Wed Oct 13 17:02:31 2010), 转信 && 但是这样有个问题,如果执行命令没有出错,我要得到这个执行结果(就是命令打印出来的信息),这又要怎么得到呢? && 【 在 analyz (引车卖浆者流玩linux) 的大作中提到: 】
: mytask = subprocess.Popen(cmd, shell=True,stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
: stdstr= mytask.stdout.read()
&& -- && ※ 来源:·水木社区 ·[FROM: 114.255.30.*]
每天爱你多一些发信人: hotdog (每天爱你多一些), 信区: Python
标&&题: Re: os.popen运行命令行如何获取错误信息
发信站: 水木社区 (Wed Oct 13 17:04:37 2010), 转信 && os.popen3 or os.popen4 && 【 在 dingxw (ddang) 的大作中提到: 】
: info = os.popen(command).read()这样只能得到command打印出来的信息,但是如果这个command运行出错了,就得不到错误信息,这种情况下info是空的。怎么才能获取这个错误信息呢?谢谢。
&&&& -- && ※ 来源:·水木社区 newsmth.net·[FROM: 220.194.19.*]
ddang发信人: dingxw (ddang), 信区: Python
标&&题: Re: os.popen运行命令行如何获取错误信息
发信站: 水木社区 (Wed Oct 13 17:19:47 2010), 转信 && 可否明示?
【 在 hotdog (每天爱你多一些) 的大作中提到: 】
: os.popen3 or os.popen4
&& -- && ※ 来源:·水木社区 ·[FROM: 114.255.30.*]
每天爱你多一些发信人: hotdog (每天爱你多一些), 信区: Python
标&&题: Re: os.popen运行命令行如何获取错误信息
发信站: 水木社区 (Wed Oct 13 17:21:03 2010), 转信 && 我要是你lb就把你开了 && 【 在 dingxw (ddang) 的大作中提到: 】
: 可否明示?
&&&& -- && ※ 来源:·水木社区 newsmth.net·[FROM: 220.194.19.*]
ddang发信人: dingxw (ddang), 信区: Python
标&&题: Re: os.popen运行命令行如何获取错误信息
发信站: 水木社区 (Wed Oct 13 17:24:39 2010), 转信 && 呵呵,没这么严重啦。只不过想如果你能直接给我详细的,而对你来说就是举手之劳的话,那就给我说一下,也省得我再去google,也是提高了整体效率,我lb不会因为我提高效率而开我的。 && 如果你不愿意明示,那也没关系,我自己去找好了。 && 还是谢谢你的提示吧。 && 【 在 hotdog (每天爱你多一些) 的大作中提到: 】
: 我要是你lb就把你开了
&& -- && ※ 来源:·水木社区 ·[FROM: 114.255.30.*]
帅五进九发信人: flw (梨花小蓓蕾), 信区: Python
标&&题: Re: os.popen运行命令行如何获取错误信息
发信站: 水木社区 (Wed Oct 13 17:28:09 2010), 转信 && 自作聪明。 && 大多数情况下,问人的整体效率不如自己查手册。
但这个道理你此时此刻显然还不明白。 && 1,问人的效率是 O(n) 的,n 个问题要花费比 1 个问题的 N 倍的时间。
2,查手册是越查越快。在我的 vim 上,我只要在代码里写 os.popen3 然后按大写的 K 就可以得到 popen3 的用法说明。 && 【 在 dingxw (ddang) 的大作中提到: 】
: 呵呵,没这么严重啦。只不过想如果你能直接给我详细的,而对你来说就是举手之劳的话,那就给我说一下,也省得我再去google,也是提高了整体效率,我lb不会因为我提高效率而开我的。
: 如果你不愿意明示,那也没关系,我自己去找好了。
: 还是谢谢你的提示吧。
Perl6 学习中…… &&&& ※ 修改:·flw 于 Oct 13 17:30:38 2010 修改本文·[FROM: 61.135.207.*]
※ 来源:·水木社区 newsmth.net·[FROM: 61.135.207.*]
楠~月之暗面发信人: iLibra (楠~月之暗面), 信区: Python
标&&题: Re: os.popen运行命令行如何获取错误信息
发信站: 水木社区 (Wed Oct 13 17:29:08 2010), 转信 && 对小mm要宽容。 && 【 在 hotdog (每天爱你多一些) 的大作中提到: 】
: 我要是你lb就把你开了
&& -- && ※ 来源:·水木社区 ·[FROM: 59.108.125.*]
贝叶斯发信人: Bayes (贝叶斯), 信区: Python
标&&题: Re: os.popen运行命令行如何获取错误信息
发信站: 水木社区 (Wed Oct 13 17:51:45 2010), 站内 && 【 在 dingxw (ddang) 的大作中提到: 】
: 标&&题: Re: os.popen运行命令行如何获取错误信息
: 发信站: 水木社区 (Wed Oct 13 17:24:39 2010), 转信
: 呵呵,没这么严重啦。只不过想如果你能直接给我详细的,而对你来说就是举手之劳的话,那就给我说一下,也省得我再去google,也是提高了整体效率,我lb不会因为我提高效率而开我的。
: 如果你不愿意明示,那也没关系,我自己去找好了。
: 还是谢谢你的提示吧。
: 【 在 hotdog (每天爱你多一些) 的大作中提到: 】
: : 我要是你lb就把你开了
查找标准库函数,可以去
查,比google更直接一点。
如果用Windows的话,有个安装后自带的chm文档,在index里面输入popen3就可以快速
定位到os.popen3了。
如果用ipython的话,也挺方便(当然python解释器也可以)。
In [3]: import os && In [4]: os.popen3?
Type:&&&&&&&&&&&& function
Base Class:&&&&&& &type 'function'&
String Form:&& &function popen3 at 0xb752adbc&
Namespace:&&&&&&&&Interactive
File:&&&&&&&&&&&& /opt/python2.6/lib/python2.6/os.py
Definition:&&&&&& os.popen3(cmd, mode='t', bufsize=-1)
Docstring:
&&&&Execute the shell command 'cmd' in a sub-process.&&On UNIX, 'cmd' &&&& may be a sequence, in which case arguments will be passed directly to &&&& the program without shell intervention (as with os.spawnv()).&&If 'cmd' &&&& is a string it will be passed to the shell (as with os.system()). If &&&& 'bufsize' is specified, it sets the buffer size for the I/O pipes.&&The &&&& file objects (child_stdin, child_stdout, child_stderr) are returned.
but that is not what ships are built for.
Sail out to sea and do new things. && It's easier to ask forgiveness than it is to get permission. &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& Grace Hopper &&&& ※ 来源:·水木社区 newsmth.net·[FROM: 124.160.34.*]
文章数:11&分页:我们平时写程序和用终端输入命令的时候,常常会用到管道,比如,在一段程序中,你可能会这样写
int fd[2]; pipe(fd)
这时,我们就创建了一个管道,实现了进程之间的通信。
再比如,我们用终端的时候,我们可能会这样输入命令: ls -la | grep test
我们也是在两个命令之间创建了一个管道。
这篇文章介绍一个函数,用来创建管道的函数:popen
首先,我们先看看 man page 给的函数原型:
FILE *popen(const char *command, const char *type);
int pclose(FILE *stream);
下面看看一段测试程序:/*
* popen_main.c
Created on: 日
Author: DLUTBruceZhang
#define MAX_BUF_LEN
int main(int argc, char **argv, char **environ)
char *buf = NULL;
buf = (char*)malloc(sizeof(char) * MAX_BUF_LEN);
FILE *file = popen("ls -la", "r");
/*子进程执行 ls -la ,并把输出写入管道中*/
memset(buf, 0, sizeof(buf));
while (!feof(file))
fgets(buf, MAX_BUF_LEN, file);
/*另一个进程读取管道中的内容*/
printf("%s", buf);
pclose(file);
free(buf);
首先,我用 popen 创建了一个管道,并执行了一个命令 “ls -la”, popen函数会调用 fork 和 pipe,所以,这个命令是一个子进程执行的,由于管道之间的共享可以发生在父子进程之间,所以,命令的输出可以由父进程读取,之后显示出来,下面的就是这段程序的输出:总用量 32
drwxrwxr-x
3 administrator administrator
-28 09:58 .
drwxrwxr-x 13 administrator administrator
-28 09:58 ..
-rw-rw-r--
1 administrator administrator -11-28 09:58 .cproject
drwxrwxr-x
2 administrator administrator
-28 10:05 Debug
-rw-rw-r--
1 administrator administrator
10:05 popen_main.c
-rw-rw-r--
1 administrator administrator
09:58 .project
-rw-rw-r--
1 administrator administrator
09:58 .projectLinux_App(20)
以前在C程序中习惯用system来调用执行shell命令,但是这样有个缺点,就是只能得到执行的shell命令的返回值,如果想得到其输出,只能通过一些间接的方法,比如修改shell命令让它的输出重定向到一文件中,然后c程序再从该文件获取。这样的缺点是需要磁盘操作,降低了程序的执行效率。
如果用popen即可解决这个问题。
#include &stdio.h&
FILE *popen(const char *cmdstring, const char *type) ;
函数popen 先执行fork,然后调用exec以执行cmdstring,并且返回一个标准I/O文件指针。
如果type是&r&,则文件指针连接到cmdstring的标准输出;
如果type是&w&,则文件指针连接到cmdstring的标准输入。
下面的例子用wget或curl从网上抓取一个网页,然后把该网页输出到终端:
#include &stdio.h&
int&main()
&&&&FILE&*fp;
&&&&if&((fp&=&popen(&wget
-O -&,&&r&))&==&NULL)&{//用“curl&”也是一样的
&&&&&&&&perror(&popen failed&);
&&&&&&&&return&-1;
&&&&char buf[256];
&&&&while&(fgets(buf,&255,&fp)&!=&NULL)&{
&&&& printf(&%s&,&buf);
&&&&if&(pclose(fp)&==&-1)&{
&&&&&&&&perror(&pclose failed&);
&&&&&&&&return&-2;
&&&&return 0;
linux C程序中获取shell脚本输出
2. 使用临时文件 &
3. 使用匿名管道 &
4. 使用popen &
Unix 界有一句名言:“一行shell脚本胜过万行C程序”,虽然这句话有些夸张,但不可否认的是,借助脚本确实能够极大的简化一些编程工作。比如实现一个 ping程序来测试网络的连通性,实现ping函数需要写上200~300行代码,为什么不能直接调用系统的ping命令呢?通常在程序中通过 system函数来调用shell命令。但是,system函数仅返回命令是否执行成功,而我们可能需要获得shell命令在控制台上输出的结果。例如,执行外部命令ping后,如果执行失败,我们希望得到ping的返回信息。
2. 使用临时文件
首先想到的方法就是将命令输出重定向到一个临时文件,在我们的应用程序中读取这个临时文件,获得外部命令执行结果,代码如下所示:
& & #define CMD_STR_LEN &1024 & &
& & int mysystem(char* cmdstring, char* tmpfile) & &
& & & & & & char cmd_string[CMD_STR_LEN]; & & & &
& & & & & & tmpnam(tmpfile); & & & &
& & & & & & sprintf(cmd_string, &%s & %s&, cmdstring, tmpfile); & & & &
& & & & & & return system(cmd_string); & &
& & 这种使用使用了临时文件作为应用程序和外部命令之间的联系桥梁,在应用程序中需要读取文件,然后再删除该临时文件,比较繁琐,优点是实现简单,容易理解。有没有不借助临时文件的方法呢?
3. 使用匿名管道
在&&UNIX 环境高级编程&&一书中给出了一种通过匿名管道方式将程序结果输出到分页程序的例子,因此想到,我们也可以通过管道来将外部命令的结果同应用程序连接起来。方法就是fork一个子进程,并创建一个匿名管道,在子进程中执行shell命令,并将其标准输出dup到匿名管道的输入端,父进程从管道中读取,即可获得shell命令的输出,代码如下:
& * 增强的system函数,能够返回system调用的输出 &&
& * @param[in] cmdstring 调用外部程序或脚本的命令串 &&
& * @param[out] buf 返回外部命令的结果的缓冲区 &&
& * @param[in] len 缓冲区buf的长度 &&
& * @return 0: 成功; -1: 失败 & &
& int mysystem(char* cmdstring, char* buf, int len) &
& & & & int & fd[2]; & & &
& & & & pid_ & & &
& & & & int & n, &&
& & & & & &&
& & & & memset(buf, 0, len); & & &
& & & & if (pipe(fd) & 0) & & & & &
& & & & return -1; & & &
& & & & if ((pid = fork()) & 0) & & & & &
& & & & return -1; & & &
& & & & else if (pid & 0) & & /* parent process */ & & &
& & & & { & & & & &
& & & & close(fd[1]); & & /* close write end */ & & & & &
& & & & count = 0; & & & & &
& & & & while ((n = read(fd[0], buf + count, len)) & 0 && count & len) & & & & & & &
& & & & count += & & & & &
& & & & close(fd[0]); & & & & &
& & & & if (waitpid(pid, NULL, 0) & 0) & & & & & & &
& & & & return -1; & & &
& & & & } & & &
& & & & else & & & & & & & & &/* child process */ & & &
& & & & close(fd[0]); & & /* close read end */ & & & & &
& & & & if (fd[1] != STDOUT_FILENO) & & & & &
& & & & { & & & & & & &
& & & & if (dup2(fd[1], STDOUT_FILENO) != STDOUT_FILENO) & & & & & & &
& & & & { & & & & & & & & &
& & & & return -1; & & & & & & &
& & & & close(fd[1]);
if (execl(&/bin/sh&, &sh&, &-c&, cmdstring, (char*)0) == -1)
return -1;
4. 使用popen在学习unix编程的过程中,发现系统还提供了一个popen函数,可以非常简单的处理调用shell,其函数原型如下:
FILE *popen(const char *command, const char *type);
该函数的作用是创建一个管道,fork一个进程,然后执行shell,而shell的输出可以采用读取文件的方式获得。采用这种方法,既避免了创建临时文件,又不受输出字符数的限制,推荐使用。
5. 小结有统计数据表明,代码的缺陷率是一定的,与所使用的语言无关。Linux提供了很多的实用工具和脚本,在程序中调用工具和脚本,无疑可以简化程序,从而降低代码的缺陷数目。Linux shell脚本也是一个强大的工具,我们可以根据需要编制脚本,然后在程序中调用自定义脚本。
& & & & 1. 前言
  Unix界有一句名言:“一行shell脚本胜过万行C程序”,虽然这句话有些夸张,但不可否认的是,借助脚本确实能够极大的简化一些编程工作。比如实现一个ping程序来测试网络的连通性,实现ping函数需要写上200~300行代码,为什么不能直接调用系统的ping命令呢?通常在程序中通过 system函数来调用shell命令。但是,system函数仅返回命令是否执行成功,而我们可能需要获得shell命令在控制台上输出的结果。例如,执行外部命令ping后,如果执行失败,我们希望得到ping的返回信息。
  2. 使用临时文件
  首先想到的方法就是将命令输出重定向到一个临时文件,在我们的应用程序中读取这个临时文件,获得外部命令执行结果,代码如下所示:
  #define CMD_STR_LEN 1024
  int mysystem(char* cmdstring, char* tmpfile)
  char cmd_string[CMD_STR_LEN];
  tmpnam(tmpfile);
  sprintf(cmd_string, &%s & %s&, cmdstring, tmpfile);
  return system(cmd_string);
  这种使用使用了临时文件作为应用程序和外部命令之间的联系桥梁,在应用程序中需要读取文件,然后再删除该临时文件,比较繁琐,优点是实现简单,容易理解。有没有不借助临时文件的方法呢?
  3. 使用匿名管道
  在&&UNIX环境高级编程&&一书中给出了一种通过匿名管道方式将程序结果输出到分页程序的例子,因此想到,我们也可以通过管道来将外部命令的结果同应用程序连接起来。方法就是fork一个子进程,并创建一个匿名管道,在子进程中执行shell命令,并将其标准输出dup 到匿名管道的输入端,父进程从管道中读取,即可获得shell命令的输出,代码如下:
  /** & * 增强的system函数,能够返回system调用的输出 & *
  * @param[in] cmdstring 调用外部程序或脚本的命令串
  * @param[out] buf 返回外部命令的结果的缓冲区
  * @param[in] len 缓冲区buf的长度
  * & * @return 0: 成功; -1: 失败 & &*/
  int mysystem(char* cmdstring, char* buf, int len)
  int & fd[2]; pid_
  int & n,
  memset(buf, 0, len);
  if (pipe(fd) & 0)
  return -1;
  if ((pid = fork()) & 0)
  return -1;
  else if (pid & 0) & & /* parent process */
  close(fd[1]); & & /* close write end */
  count = 0;
  while ((n = read(fd[0], buf + count, len)) & 0 && count & len)
  count +=
  close(fd[0]);
  if (waitpid(pid, NULL, 0) & 0)
  return -1;
  else & &/* child process */
  close(fd[0]); & & /* close read end */
  if (fd[1] != STDOUT_FILENO)
  if (dup2(fd[1], STDOUT_FILENO) != STDOUT_FILENO)
  return -1;
  close(fd[1]);
  if (execl(&/bin/sh&, &sh&, &-c&, cmdstring, (char*)0) == -1)
  return -1;
  return 0;
  4. 使用popen
  在学习unix编程的过程中,发现系统还提供了一个popen函数,可以非常简单的处理调用shell,其函数原型如下:
  FILE *popen(const char *command, const char *type);
  该函数的作用是创建一个管道,fork一个进程,然后执行shell,而shell的输出可以采用读取文件的方式获得。采用这种方法,既避免了创建临时文件,又不受输出字符数的限制,推荐使用。
  popen使用FIFO管道执行外部程序。
  #include &stdio.h&
  FILE *popen(const char *command, const char *type);
  int pclose(FILE *stream);
  popen 通过type是r还是w确定command的输入/输出方向,r和w是相对command的管道而言的。r表示command从管道中读入,w表示 command通过管道输出到它的stdout,popen返回FIFO管道的文件流指针。pclose则用于使用结束后关闭这个指针。
  下面看一个例子:
  #include &sys/types.h&
  #include &unistd.h&
  #include &stdlib.h&
  #include &stdio.h&
  #include &string.h&
  int main( void )
  FILE & *
  FILE & &*
  char & buf[1024];
  memset( buf, '\0', sizeof(buf) );//初始化buf,以免后面写如乱码到文件中
  stream = popen( &ls -l&, &r& ); //将“ls -l”命令的输出 通过管道读取(“r”参数)到FILE* stream
  wstream = fopen( &test_popen.txt&, &w+&); //新建一个可写的文件
  fread( buf, sizeof(char), sizeof(buf), stream); //将刚刚FILE* stream的数据流读取到buf中
  fwrite( buf, 1, sizeof(buf), wstream );//将buf中的数据写到FILE & &*wstream对应的流中,也是写到文件中
  pclose( stream );
  fclose( wstream );
  return 0;
  [root@localhost src]# gcc popen.c
  [root@localhost src]# ./a.out
  [root@localhost src]# cat test_popen.txt
  总计 128
  -rwxr-xr-x 1 root root
11:51 a.out
  -rwxr-xr-x 1 root root 542 09-30 00:00 child_fork.c
  -rwxr-xr-x 1 root root 480 09-30 00:13 execve.c
  -rwxr-xr-x 1 root root
21:33 fork.c
  -rwxr-xr-x 1 root root 162 09-29 18:54 getpid.c
  -rwxr-xr-x 1 root root
11:49 popen.c
  -rwxr-xr-x 1 root root 443 09-30 00:55 system.c
  -rwxr-xr-x 1 root root & &0 09-30 11:51 test_popen.txt
  -rwxr-xr-x 1 root root
11:39 test.txt
  5. 小结
  有统计数据表明,代码的缺陷率是一定的,与所使用的语言无关。Linux提供了很多的实用工具和脚本,在程序中调用工具和脚本,无疑可以简化程序,从而降低代码的缺陷数目。Linux shell脚本也是一个强大的工具,我们可以根据需要编制脚本,然后在程序中调用自定义脚本。
&&相关文章推荐
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:334091次
积分:3582
积分:3582
排名:第8747名
原创:15篇
转载:261篇
评论:17条
(2)(9)(4)(1)(3)(1)(6)(4)(2)(3)(5)(9)(19)(4)(4)(5)(12)(2)(5)(9)(4)(7)(3)(30)(8)(12)(9)(22)(23)(30)(6)(8)(6)& & & & 一、函数介绍& & 1.1 函数原型:& & 复制代码代码如下:& & #include & & FILE *popen(const char *command,const char *open_mode);& & 1.2 说明& & popen函数允许一……
声明:该文章系网友上传分享,此内容仅代表网友个人经验或观点,不代表本网站立场和观点;若未进行原创声明,则表明该文章系转载自互联网;若该文章内容涉嫌侵权,请及时向
论文写作技巧
上一篇:下一篇:
相关经验教程问题对人有帮助,内容完整,我也想知道答案
问题没有实际价值,缺少关键内容,没有改进余地
在C中使用popen调用tshark,没有返回输出
例子代码如下:
//开启tshark
FILE *fp = popen("tshark -r t_fifo -T pdml", "r");
//读取popen输出
fread(buffer, 1024, 1, fp);
t_fifo 为创建的FIFO,写入标准PCAP格式报文,用于tshark解析
答案对人有帮助,有参考价值
答案没帮助,是错误的答案,答非所问
1 man popen可以看到The
value from popen() is a normal standard I/O stream in all respects save that it must be closed with pclose() rather than fclose(3).
Writing to
such a stream writes to the standard
the command's standard output is the same as that of the process that called popen(), unless this
altered by the command itself.
Conversely, reading from a "popened" stream reads the command's standard output, and the command's standard input is the
same as that of the process that called popen().
也就是说,其返回值是新进程的STDOUT ; 如果新的进程没有在STDOUT 给出打印,你当然都不到;
2 在linutmint17 中执行 tshark -r t_fifo -T pdml echo $?为2;说明命令不对,并且错误信息被重定向到STDERR了;
如果你向在STDOUT 中获得错误信息,可以使用tshark -r t_fifo -T pdml
该答案已被忽略,原因:
同步到新浪微博
分享到微博?
Hi,欢迎来到 SegmentFault 技术社区!⊙▽⊙ 在这里,你可以提出编程相关的疑惑,关注感兴趣的问题,对认可的回答投赞同票;大家会帮你解决编程的问题,和你探讨技术更新,为你的回答投上赞同票。
明天提醒我
关闭理由:
删除理由:
忽略理由:
推广(招聘、广告、SEO 等)方面的内容
与已有问题重复(请编辑该提问指向已有相同问题)
答非所问,不符合答题要求
宜作评论而非答案
带有人身攻击、辱骂、仇恨等违反条款的内容
无法获得确切结果的问题
非开发直接相关的问题
非技术提问的讨论型问题
其他原因(请补充说明)
我要该,理由是:
扫扫下载 App}

我要回帖

更多关于 java如何输出数组的值 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信