• python中的各种符号


    在这里所作的是将所有的 Python 符号和关键字列出来,这些都是值得掌握的重点。
    
    关键字
      anddelfromnotwhile
      as
      elifglobalor
      with
      assertelseifpassyieldbreakexceptimportprintclassexecinraisecontinuefinallyisreturndefforlambdatry
    
    数据类型
      True
      False
      None
      strings
      numbers
      floats
      lists
    
    字符串转义序列(Escape Sequences)
    
      \
      '
    "
      a
      
      f
      
    
      
    
      	
      v
    
    字符串格式化(String Formats)
      %d   -------》 数字
      %i
      %o
      %u
      %x
      %X
      %e
      %E
      %f  --------》 小数
      %F
      %g
      %G
      %c
      %r   ----------》%r 调用 rper函数打印字符串,repr函数返回的字符串是加上了转义序列,是直接书写的字符串的形式
      %s   ----------》%s 调用 str函数打印字符串,str函数返回原始字符串
      %%
    
    操作符号
      +-***///%
        <><=>===!=<>
      ( )
      [ ]
      { }
      @
      ,
      :
      .
      =
      ;
      +=-=*=/=//=%=**=
  • 相关阅读:
    文章块引用模版
    悬停工具提示
    各个知识点
    Github Fork 缎带.html
    css重置样式
    暗灰色的圆形按钮.html
    css中的居中的方法
    display:table的几个用法 块级子元素垂直居中
    <meta>标签中http-equiv属性的属性值X-UA-Compatible详解
    jQuery难学是因为什么?
  • 原文地址:https://www.cnblogs.com/kaishirenshi/p/9121296.html
Copyright © 2020-2023  润新知