推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
guoguodun
V2EX  ›  Python

Python 新手问个问题,关于变量等于 Ture

  •  
  •   guoguodun · Dec 7, 2017 · 2585 views
    This topic created in 3258 days ago, the information mentioned may be changed or developed.

    a = Ture print(a)

    Traceback (most recent call last): File "C:/Users/lenovo/AppData/Local/Programs/Python/Python37-32/asfasfsad.py", line 1, in <module> a = Ture NameError: name 'Ture' is not defined

    为什么显示 Ture is not defined 啊?我的是 python 3 自带的 IDLE

    3 replies  •  2017-12-14 10:51:31 +08:00
    mkeith
    mkeith
    Dec 7, 2017
    1
    True
    lieh222
    lieh222
    Dec 8, 2017
    2
    想象不到楼主看到答案的表情
    xiongweixbox
    xiongweixbox
    Dec 14, 2017
    3
    楼上的你们哈哈哈。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1501 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 15:02 · PVG 23:02 · LAX 07:02 · JFK 10:02
    ♥ Do have faith in what you're doing.