1.数字与字符串的转化
    #1.数字转字符,使用格式化字符串:
        *1.demo = ‘%d’  %  source
        *2.%d整型;%f 浮点型 ;%e科学计数
    *3.int('source')  #转化为int型
    #2.字符串转化为数字
        *1.导入string :import string
        *2.demo = atoi(source)  #转换为整型’
            atof()    #转为浮点型 
2.逻辑值:
    and   #与
    or    #或
    not  #非

相关文章:

  • 2021-06-09
  • 2022-01-26
  • 2021-07-12
  • 2021-12-08
  • 2022-12-23
  • 2022-12-23
  • 2021-08-10
  • 2022-02-18
猜你喜欢
  • 2022-12-23
  • 2021-09-18
  • 2022-12-23
  • 2022-12-23
  • 2021-05-25
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案