1基礎

603 ワード

  • 印刷
  • print "Hello,World!"
    
    #!/usr/bin/python
    #coding=utf-8       ###python2.7 utf-8 , ASCII
    print " "
    
  • 受信文字列
  • i1 = raw_input("")     ###python2.7
    i1 = input("")         ###python3.6
    
  • python内蔵変数
  • and
    exec
    not
    assert
    finally
    or
    break
    for
    pass
    class
    from
    print
    continue
    global
    raise
    def
    if
    return
    del
    import
    try
    elif
    in
    while
    else
    is
    with
    except
    lambda
    yield