【问题标题】:How do I list all cron jobs for all users?如何列出所有用户的所有 cron 作业?
【发布时间】:2010-09-13 04:33:48
【问题描述】:

是否有命令或现有脚本可以让我一次查看所有 *NIX 系统的计划 cron 作业?我希望它包含所有用户 crontab,以及 /etc/crontab,以及 /etc/cron.d 中的任何内容。在/etc/crontab 中看到run-parts 运行的具体命令也很不错。

理想情况下,我希望以漂亮的列形式输出并以某种有意义的方式排序。

然后我可以合并来自多个服务器的这些列表以查看整体“事件时间表”。

我正要自己写这样一个脚本,但如果有人已经麻烦了......

【问题讨论】:

标签: unix cron


【解决方案1】:

您必须以 root 身份运行它,但是:

for user in $(cut -f1 -d: /etc/passwd); do crontab -u $user -l; done

将遍历列出其 crontab 的每个用户名。 crontab 由各自的用户拥有,因此您将无法看到其他用户的 crontab,而无需他们或 root。


编辑 如果您想知道 crontab 属于哪个用户,请使用 echo $user

for user in $(cut -f1 -d: /etc/passwd); do echo $user; crontab -u $user -l; done

【讨论】:

  • 在 NIS 或 LDAP 中定义用户时不起作用。您需要使用for user in $(getent passwd | cut -f1 -d: ); do echo $user; crontab -u $user -l; done
  • 对此进行了更新以排除 cmets 并禁止显示“用户没有 crontab ...”消息:for user in $(cut -f1 -d: /etc/passwd); do crontab -u $user -l 2>/dev/null | grep -v '^#'; done
  • 查看/var/spool/cron中的文件不是更方便吗?
  • 我们 LDAP 和 /etc/passwd 需要替换为 getent 命令:for user in $(getent passwd | awk -F : '{print $1}'); do echo $user; crontab -u $user -l; done
  • /etc/cron.hourly//etc/cron.daily//etc/cron.weekly//etc/cron.monthly/...中的 cronjobs 呢?
【解决方案2】:

我最终编写了一个脚本(我正在尝试自学 bash 脚本的精妙之处,所以这就是为什么您在这里看不到 Perl 之类的东西)。这不是一件简单的事情,但它可以满足我的大部分需求。它使用 Kyle 的建议来查找单个用户的 crontab,但也处理/etc/crontab(包括/etc/cron.hourly/etc/cron.dailyrun-parts 启动的脚本)和/etc/cron.d 目录中的作业。它获取所有这些并将它们合并到如下所示的显示中:

mi     h    d  m  w  user      command
09,39  *    *  *  *  root      [ -d /var/lib/php5 ] && find /var/lib/php5/ -type f -cmin +$(/usr/lib/php5/maxlifetime) -print0 | xargs -r -0 rm
47     */8  *  *  *  root      rsync -axE --delete --ignore-errors / /mirror/ >/dev/null
17     1    *  *  *  root      /etc/cron.daily/apt
17     1    *  *  *  root      /etc/cron.daily/aptitude
17     1    *  *  *  root      /etc/cron.daily/find
17     1    *  *  *  root      /etc/cron.daily/logrotate
17     1    *  *  *  root      /etc/cron.daily/man-db
17     1    *  *  *  root      /etc/cron.daily/ntp
17     1    *  *  *  root      /etc/cron.daily/standard
17     1    *  *  *  root      /etc/cron.daily/sysklogd
27     2    *  *  7  root      /etc/cron.weekly/man-db
27     2    *  *  7  root      /etc/cron.weekly/sysklogd
13     3    *  *  *  archiver  /usr/local/bin/offsite-backup 2>&1
32     3    1  *  *  root      /etc/cron.monthly/standard
36     4    *  *  *  yukon     /home/yukon/bin/do-daily-stuff
5      5    *  *  *  archiver  /usr/local/bin/update-logs >/dev/null

请注意,它显示的是用户,并且或多或少按小时和分钟排序,以便我可以看到每天的日程安排。

到目前为止,我已经在 Ubuntu、Debian 和 Red Hat AS 上对其进行了测试。

#!/bin/bash

# System-wide crontab file and cron job directory. Change these for your system.
CRONTAB='/etc/crontab'
CRONDIR='/etc/cron.d'

# Single tab character. Annoyingly necessary.
tab=$(echo -en "\t")

# Given a stream of crontab lines, exclude non-cron job lines, replace
# whitespace characters with a single space, and remove any spaces from the
# beginning of each line.
function clean_cron_lines() {
    while read line ; do
        echo "${line}" |
            egrep --invert-match '^($|\s*#|\s*[[:alnum:]_]+=)' |
            sed --regexp-extended "s/\s+/ /g" |
            sed --regexp-extended "s/^ //"
    done;
}

# Given a stream of cleaned crontab lines, echo any that don't include the
# run-parts command, and for those that do, show each job file in the run-parts
# directory as if it were scheduled explicitly.
function lookup_run_parts() {
    while read line ; do
        match=$(echo "${line}" | egrep -o 'run-parts (-{1,2}\S+ )*\S+')

        if [[ -z "${match}" ]] ; then
            echo "${line}"
        else
            cron_fields=$(echo "${line}" | cut -f1-6 -d' ')
            cron_job_dir=$(echo  "${match}" | awk '{print $NF}')

            if [[ -d "${cron_job_dir}" ]] ; then
                for cron_job_file in "${cron_job_dir}"/* ; do  # */ <not a comment>
                    [[ -f "${cron_job_file}" ]] && echo "${cron_fields} ${cron_job_file}"
                done
            fi
        fi
    done;
}

# Temporary file for crontab lines.
temp=$(mktemp) || exit 1

# Add all of the jobs from the system-wide crontab file.
cat "${CRONTAB}" | clean_cron_lines | lookup_run_parts >"${temp}" 

# Add all of the jobs from the system-wide cron directory.
cat "${CRONDIR}"/* | clean_cron_lines >>"${temp}"  # */ <not a comment>

# Add each user's crontab (if it exists). Insert the user's name between the
# five time fields and the command.
while read user ; do
    crontab -l -u "${user}" 2>/dev/null |
        clean_cron_lines |
        sed --regexp-extended "s/^((\S+ +){5})(.+)$/\1${user} \3/" >>"${temp}"
done < <(cut --fields=1 --delimiter=: /etc/passwd)

# Output the collected crontab lines. Replace the single spaces between the
# fields with tab characters, sort the lines by hour and minute, insert the
# header line, and format the results as a table.
cat "${temp}" |
    sed --regexp-extended "s/^(\S+) +(\S+) +(\S+) +(\S+) +(\S+) +(\S+) +(.*)$/\1\t\2\t\3\t\4\t\5\t\6\t\7/" |
    sort --numeric-sort --field-separator="${tab}" --key=2,1 |
    sed "1i\mi\th\td\tm\tw\tuser\tcommand" |
    column -s"${tab}" -t

rm --force "${temp}"

【讨论】:

  • 什么都没有,但它没有对 /etc/crontab 和 /etc/cron.d/ 中的系统 cron 作业做任何事情。处理这些,并在最后格式化所有内容,这就是我的脚本所做的。
  • yukondude - 你应该考虑把它放在 github 上,即使只是作为一个要点。
  • 试图复制粘贴并运行,但失败:showcrons.sh: line 59: syntax error near unexpected token &lt;' showcrons.sh: line 59: done
  • @KyleBurton 似乎至少有 8 个 gists 已经在复制这个,gist.github.com/gists/…
  • 警告:此脚本缺少来自/etc/anacrontab的事件
【解决方案3】:

在 Ubuntu 或 debian 下,您可以通过 /var/spool/cron/crontabs/ 查看 crontab,然后每个用户的文件都在那里。当然,这仅适用于特定于用户的 crontab。

对于 Redhat 6/7 和 Centos,crontab 位于 /var/spool/cron/ 下。

【讨论】:

  • 这也适用于 RedHat (/var/spool/cron),并且比编写/运行脚本更容易,尤其是当您使用 Ldap 之类的东西来管理帐户时。 +1
  • 这对我来说比其他任何答案都更有帮助。此方法允许您查看不再存在的用户的 crontab,从而为您提供 OP 要求的所有 cron 作业。
  • 此方法的另一个好处:我的服务器使用 LDAP,所以大多数用户不在/etc/passwd。 IMO 这应该是公认的答案,而不是所有的蛮力解决方案。
  • 这里适合 Suse Linux。
  • 谢谢,AWS EC2 实例也是如此,这个信息很有帮助!
【解决方案4】:

这将显示所有用户的所有 crontab 条目。

sed 's/^\([^:]*\):.*$/crontab -u \1 -l 2>\&1/' /etc/passwd | sh | grep -v "no crontab for"

【讨论】:

  • 这样的正则表达式,非常强大。 getent passwd | awk -F: '{ print $1 }' | sudo xargs -n1 crontab -l -u
【解决方案5】:

取决于你的 linux 版本,但我使用:

tail -n 1000 /var/spool/cron/*

作为根。非常简单,非常简短。

给我这样的输出:

==> /var/spool/cron/root <==
15 2 * * * /bla

==> /var/spool/cron/my_user <==
*/10 1 * * * /path/to/script

【讨论】:

  • 使用tail -n +1 /var/spool/cron/* 列出文件的所有内容。
  • ... 或 sudo sh -c 'tail -n +1 /var/spool/cron/*' 如果您不想成为 root。我的强迫症迫使我调查为什么我不能像写的那样 sudo 这个命令。这是因为普通用户无权访问 /var/spool/cron 目录,并且 glob 被解释为文字星号,这显然不存在。
  • 另外,cd /var/spool/cron/cron/ &amp;&amp; grep . * 也会在每个 cron 作业前打印相应的用户名
【解决方案6】:

Kyle Burton 的答案的小改进,改进了输出格式:

#!/bin/bash
for user in $(cut -f1 -d: /etc/passwd)
do echo $user && crontab -u $user -l
echo " "
done

【讨论】:

【解决方案7】:
getent passwd | cut -d: -f1 | perl -e'while(<>){chomp;$l = `crontab -u $_ -l 2>/dev/null`;print "$_\n$l\n" if $l}'

这避免了直接与 passwd 混淆,跳过没有 cron 条目的用户,对于那些拥有它们的用户,它会打印出用户名以及他们的 crontab。

不过大部分都放在这里,这样我以后可以找到它,以防我需要再次搜索它。

【讨论】:

  • 它还列出了/etc/passwd 中不存在的 LDAP 用户。上面马特的解决方案更适合这种特殊情况,但很高兴知道该命令存在。
【解决方案8】:

从ROOT用户获取列表。

for user in $(cut -f1 -d: /etc/passwd); do echo $user; sudo crontab -u $user -l; done

【讨论】:

    【解决方案9】:

    如果您使用 NIS 检查集群,根据马特的回答 /var/spool/cron/tabs,查看用户是否有 crontab 条目的唯一方法是。

    grep -v "#" -R  /var/spool/cron/tabs
    

    【讨论】:

      【解决方案10】:

      这个脚本在 CentOS 中对我有用,可以列出环境中的所有 cron:

      sudo cat /etc/passwd | sed 's/^\([^:]*\):.*$/sudo crontab -u \1 -l 2>\&1/' | grep -v "no crontab for" | sh
      

      【讨论】:

      • 太棒了!我添加了一些变化来查看 cron 作业在哪个用户下,并在结果之间留了一些空间:cat /etc/passwd | sed 's/^\([^:]*\):.*$/echo "\ncrontab for \1:"; sudo crontab -u \1 -l 2&gt;\&amp;1/' | grep -v "no crontab for" | sh 节省了一点时间
      • 这样的正则表达式,非常强大。 getent passwd | awk -F: '{ print $1 }' | sudo xargs -n1 crontab -l -u
      【解决方案11】:

      我喜欢上面简单的单行答案:

      对于 $(cut -f1 -d: /etc/passwd) 中的用户;执行 crontab -u $user -l;完成

      但是 Solaris 没有 -u 标志并且不打印它正在检查的用户,你可以像这样修改它:

      for user in $(cut -f1 -d: /etc/passwd); do echo User:$user; crontab -l $user 2>&1 | grep -v crontab; done
      

      当帐户不允许使用 cron 等时,您将获得一个用户列表,而不会出现 crontab 引发的错误。请注意,在 Solaris 中,角色也可以位于 /etc/passwd 中(请参阅 /etc/user_attr)。

      【讨论】:

      【解决方案12】:
      for user in $(cut -f1 -d: /etc/passwd); 
      do 
          echo $user; crontab -u $user -l; 
      done
      

      【讨论】:

      【解决方案13】:

      以下内容从没有 crontab 的用户中删除了 cmets、空行和错误。剩下的只是用户及其工作的清晰列表。

      注意第二行中sudo 的使用。如果您已经是 root,请将其删除。

      for USER in $(cut -f1 -d: /etc/passwd); do \
      USERTAB="$(sudo crontab -u "$USER" -l 2>&1)";  \
      FILTERED="$(echo "$USERTAB"| grep -vE '^#|^$|no crontab for|cannot use this program')";  \
      if ! test -z "$FILTERED"; then  \
      echo "# ------ $(tput bold)$USER$(tput sgr0) ------";  \
      echo "$FILTERED";  \
      echo "";  \
      fi;  \
      done
      

      示例输出:

      # ------ root ------
      0 */6 * * * /usr/local/bin/disk-space-notify.sh
      45 3 * * * /opt/mysql-backups/mysql-backups.sh
      5 7 * * * /usr/local/bin/certbot-auto renew --quiet --no-self-upgrade
      
      # ------ sammy ------
      55 * * * * wget -O - -q -t 1 https://www.example.com/cron.php > /dev/null
      

      我在 Ubuntu(12 到 16)和 Red Hat(5 到 7)上使用它。

      【讨论】:

        【解决方案14】:

        取决于您的 cron 版本。在 FreeBSD 上使用 Vixie cron,我可以这样做:

        (cd /var/cron/tabs && grep -vH ^# *) 
        

        如果我想要更多的制表符分隔,我可能会这样做:

        (cd /var/cron/tabs && grep -vH ^# * | sed "s/:/      /")
        

        这是 sed 替换部分中的文字标签。

        循环遍历/etc/passwd 中的用户并为每个用户执行crontab -l -u $user 可能更加独立于系统。

        【讨论】:

          【解决方案15】:

          虽然许多答案产生了有用的结果,但我认为为这项任务维护一个复杂的脚本是不值得的。这主要是因为大多数发行版使用不同的 cron 守护进程。

          观看和学习,儿童和老人。

          $ \cat ~jaroslav/bin/ls-crons 
          #!/bin/bash
          getent passwd | awk -F: '{ print $1 }' | xargs -I% sh -c 'crontab -l -u % | sed "/^$/d; /^#/d; s/^/% /"' 2>/dev/null
          echo
          cat /etc/crontab /etc/anacrontab 2>/dev/null | sed '/^$/d; /^#/d;'
          echo
          run-parts --list /etc/cron.hourly;
          run-parts --list /etc/cron.daily;
          run-parts --list /etc/cron.weekly;
          run-parts --list /etc/cron.monthly;
          

          这样跑

          $ sudo ls-cron
          

          示例输出(Gentoo)

          $ sudo ~jaroslav/bin/ls-crons 
          jaroslav */5 * * * *  mv ~/java_error_in_PHPSTORM* ~/tmp 2>/dev/null
          jaroslav 5 */24 * * * ~/bin/Find-home-files
          jaroslav * 7 * * * cp /T/fortrabbit/ssh-config/fapps.tsv /home/jaroslav/reference/fortrabbit/fapps
          jaroslav */8 1 * * * make -C /T/fortrabbit/ssh-config discover-apps # >/dev/null
          jaroslav */7    * * * * getmail -r jazzoslav -r fortrabbit 2>/dev/null
          jaroslav */1    * * * * /home/jaroslav/bin/checkmail
          jaroslav *    9-18 * * * getmail -r fortrabbit 2>/dev/null
          
          SHELL=/bin/bash
          PATH=/sbin:/bin:/usr/sbin:/usr/bin
          MAILTO=root
          HOME=/
          SHELL=/bin/sh
          PATH=/sbin:/bin:/usr/sbin:/usr/bin
          MAILTO=root
          RANDOM_DELAY=45
          START_HOURS_RANGE=3-22
          1   5   cron.daily      nice run-parts /etc/cron.daily
          7   25  cron.weekly     nice run-parts /etc/cron.weekly
          @monthly 45 cron.monthly        nice run-parts /etc/cron.monthly
          
          /etc/cron.hourly/0anacron
          /etc/cron.daily/logrotate
          /etc/cron.daily/man-db
          /etc/cron.daily/mlocate
          /etc/cron.weekly/mdadm
          /etc/cron.weekly/pfl
          

          示例输出 (Ubuntu)

          SHELL=/bin/sh
          PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
          17 *    * * *   root    cd / && run-parts --report /etc/cron.hourly
          25 6    * * *   root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
          47 6    * * 7   root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
          52 6    1 * *   root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
          
          /etc/cron.hourly/btrfs-quota-cleanup
          /etc/cron.hourly/ntpdate-debian
          /etc/cron.daily/apport
          /etc/cron.daily/apt-compat
          /etc/cron.daily/apt-show-versions
          /etc/cron.daily/aptitude
          /etc/cron.daily/bsdmainutils
          /etc/cron.daily/dpkg
          /etc/cron.daily/logrotate
          /etc/cron.daily/man-db
          /etc/cron.daily/mlocate
          /etc/cron.daily/passwd
          /etc/cron.daily/popularity-contest
          /etc/cron.daily/ubuntu-advantage-tools
          /etc/cron.daily/update-notifier-common
          /etc/cron.daily/upstart
          /etc/cron.weekly/apt-xapian-index
          /etc/cron.weekly/man-db
          /etc/cron.weekly/update-notifier-common
          
          

          图片

          Ubuntu:

          Gentoo:

          【讨论】:

            【解决方案16】:

            感谢这个非常有用的脚本。我在旧系统(Red Hat Enterprise 3,它处理不同的 egrep 和字符串中的制表符)和 /etc/cron.d/ 中没有任何内容的其他系统(脚本然后以错误结束)上运行它时遇到了一些小问题。所以这里有一个补丁可以让它在这种情况下工作:

            2a3,4
            > #See:  http://stackoverflow.com/questions/134906/how-do-i-list-all-cron-jobs-for-all-users
            >
            27c29,30
            <         match=$(echo "${line}" | egrep -o 'run-parts (-{1,2}\S+ )*\S+')
            ---
            >         #match=$(echo "${line}" | egrep -o 'run-parts (-{1,2}\S+ )*\S+')
            >         match=$(echo "${line}" | egrep -o 'run-parts.*')
            51c54,57
            < cat "${CRONDIR}"/* | clean_cron_lines >>"${temp}"  # */ <not a comment>
            ---
            > sys_cron_num=$(ls /etc/cron.d | wc -l | awk '{print $1}')
            > if [ "$sys_cron_num" != 0 ]; then
            >       cat "${CRONDIR}"/* | clean_cron_lines >>"${temp}"  # */ <not a comment>
            > fi
            67c73
            <     sed "1i\mi\th\td\tm\tw\tuser\tcommand" |
            ---
            >     sed "1i\mi${tab}h${tab}d${tab}m${tab}w${tab}user${tab}command" |
            

            我不太确定第一个 egrep 中的更改是一个好主意,但是,这个脚本已经在 RHEL3、4、5 和 Debian5 上进行了测试,没有任何问题。希望这会有所帮助!

            【讨论】:

              【解决方案17】:

              您可以为所有用户列表编写:

              sudo crontab -u userName -l
              
              ,
              

              你也可以去

              cd /etc/cron.daily/
              ls -l
              cat filename
              

              此文件将列出时间表

              cd /etc/cron.d/
              ls -l
              cat filename
              

              【讨论】:

              • 这就是我真正需要的。
              【解决方案18】:

              建立在@Kyle 之上

              for user in $(tail -n +11 /etc/passwd | cut -f1 -d:); do echo $user; crontab -u $user -l; done
              

              为了避免 cmets 通常位于 /etc/passwd 的顶部,

              在 macOS 上

              for user in $(dscl . -list /users | cut -f1 -d:); do echo $user; crontab -u $user -l; done    
              

              【讨论】:

              • 你不应该grep -v '^#' 而不是依靠幻数11吗?
              • Red Hat / CentOS 发行版不会在用户的 crontab 开头写出有用的提示,因此删除前 11 行会删除它的内容。如果 Ubuntu 用户编辑了他们自己的 crontab 并删除了所有的手,情况也是如此。
              【解决方案19】:

              我认为下面是一个更好的班轮。例如,如果您在 NIS 或 LDAP 中有用户,他们就不会在 /etc/passwd 中。这将为您提供每个已登录用户的 crontab。

              for I in `lastlog | grep -v Never | cut -f1 -d' '`; do echo $I ; crontab -l -u $I ; done
              

              【讨论】:

              【解决方案20】:

              向 yukondude 表示歉意和感谢。

              我试图总结时间设置以便于阅读,虽然这不是一个完美的工作,而且我不会触及“每个星期五”或“仅在星期一”的内容。

              这是第 10 版 - 现在是:

              • 运行速度更快
              • 具有可选的进度字符,因此您可以进一步提高速度。
              • 使用分隔线分隔标题和输出。
              • 可以汇总所有未遇到的时间间隔时以紧凑格式输出。
              • 接受一年中月份的一月...十二月描述符
              • 接受 Mon...Sun 一周中的几天的描述符
              • 尝试在 anacron 缺失时处理 debian 风格的虚拟化
              • 尝试处理在使用“[ -x ... ]”预测试可执行性后运行文件的 crontab 行
              • 尝试处理在使用“command -v”预测试可执行性后运行文件的 crontab 行
              • 允许使用区间跨度和列表。
              • 支持在用户特定的 /var/spool crontab 文件中使用运行部件。

              我现在在这里发布完整的脚本。

              https://gist.github.com/myshkin-uk/d667116d3e2d689f23f18f6cd3c71107

              【讨论】:

                【解决方案21】:

                在 Solaris 上,对于特定的已知用户名:

                crontab -l username
                

                在 Solaris 上一次获得所有用户的工作,就像上面的其他帖子一样:

                for user in $(cut -f1 -d: /etc/passwd); do crontab -l $user 2>/dev/null; done
                

                更新: 请停止建议在 Solaris 上错误的编辑:

                【讨论】:

                  【解决方案22】:

                  由于这是一个循环文件​​ (/etc/passwd) 并执行操作的问题,我错过了How can I read a file (data stream, variable) line-by-line (and/or field-by-field)? 上的正确方法:

                  while IFS=":" read -r user _
                  do
                     echo "crontab for user ${user}:"
                     crontab -u "$user" -l
                  done < /etc/passwd
                  

                  这将使用: 作为字段分隔符逐行读取/etc/passwd。通过说read -r user _,我们让$user 保存第一个字段,_ 其余部分(忽略字段只是一个垃圾变量)。

                  这样,我们就可以使用变量$user 调用crontab -u,为了安全起见(如果它包含空格怎么办?在这样的文件中不太可能,但你永远不会知道)。

                  【讨论】:

                    【解决方案23】:

                    我倾向于使用以下小命令来列出单个用户的所有作业以及带有现代 bash 控制台的基于 Unix 的操作系统上的所有用户:

                    1.单用户

                     echo "Jobs owned by $USER" && crontab -l -u $USER
                    

                    2。所有用户

                    for wellknownUser in $(cut -f1 -d: /etc/passwd);
                       do
                          echo "Jobs owned by $wellknownUser";
                          crontab -l -u $wellknownUser;
                          echo -e "\n";
                          sleep 2;  # (optional sleep 2 seconds) while drinking a coffee
                       done
                    

                    【讨论】:

                      【解决方案24】:

                      我在下面制作了一个衬里脚本,它可以为我列出所有用户的所有 cron 作业。

                      cat /etc/passwd |awk -F ':' '{print $1}'|while read a;do crontab -l -u ${a} ; done
                      

                      【讨论】:

                        【解决方案25】:

                        对我来说看看 /var/spool/cron/crontabs 是最好的方法

                        【讨论】:

                        • 这个问题之前已经回答过
                        【解决方案26】:

                        此脚本将 Crontab 输出到一个文件,并列出所有确认没有 crontab 条目的用户:

                        for user in $(cut -f1 -d: /etc/passwd); do 
                          echo $user >> crontab.bak
                          echo "" >> crontab.bak
                          crontab -u $user -l >> crontab.bak 2>> > crontab.bak
                        done
                        

                        【讨论】:

                        • // ,RobFrost,您确定这里写的这个脚本始终有效吗?
                        • Why you don't read lines with "for"。此外,在您发布此问题之前,此问题已被多次回答。
                        猜你喜欢
                        • 2013-02-14
                        • 1970-01-01
                        • 1970-01-01
                        • 2019-06-24
                        • 1970-01-01
                        • 1970-01-01
                        • 2015-06-09
                        • 1970-01-01
                        • 1970-01-01
                        相关资源
                        最近更新 更多