首页 > 其他 > 详细

如何查看2to3.PY的帮助文档

时间:2015-11-21 18:21:41      阅读:363      评论:0      收藏:0      [点我收藏+]
# -*- coding: utf-8 -*-
#python 27
#xiaodeng
#如何查看2to3.PY的帮助文档
#http://tieba.baidu.com/p/3939904893



#如何查看2to3.PY的帮助文档
#命令
请输入命令:2to3.py -h


C:\Users\Administrator>cd C:\Python27\Tools\Scripts
C:\Python27\Tools\Scripts>2to3.py -h
Usage: 2to3 [options] file|dir ...

Options:
  -h, --help            show this help message and exit
  -d, --doctests_only   Fix up doctests only
  -f FIX, --fix=FIX     Each FIX specifies a transformation; default: all
  -j PROCESSES, --processes=PROCESSES
                        Run 2to3 concurrently
  -x NOFIX, --nofix=NOFIX
                        Prevent a transformation from being run
  -l, --list-fixes      List available transformations
  -p, --print-function  Modify the grammar so that print() is a function
  -v, --verbose         More verbose logging
  --no-diffs            Dont show diffs of the refactoring
  -w, --write           Write back modified files
  -n, --nobackups       Dont write backups for modified files
  -o OUTPUT_DIR, --output-dir=OUTPUT_DIR
                        Put output files in this directory instead of
                        overwriting the input files.  Requires -n.
  -W, --write-unchanged-files
                        Also write files even if no changes were required
                        (useful with --output-dir); implies -w.
  --add-suffix=ADD_SUFFIX
                        Append this string to all output filenames. Requires
                        -n if non-empty.  ex: --add-suffix=3 will generate
                        .py3 files.

C:\Python27\Tools\Scripts>

如何查看2to3.PY的帮助文档

原文:http://www.cnblogs.com/dengyg200891/p/4984237.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!