python3 几个简单基本知识点

版权声明:转载请注明出处 https://blog.csdn.net/qq_37689106/article/details/81590430
  1. 删除软连接 sudo unlink /usr/bin/python
    创建一个新的连接 : ln -s newname name
    2.python 数的概念
    help()
    id()
    type()
    3.python 的输入 input函数的使用
    input(“提示语句”)
    强制转换:
    str()
    int()
    float()
    4.算术运算符
    +
    -
    *
    /
    // 求整除的那个数
  2. 数学库的使用
    首先引入 import math
    dir(math) :可以查看math数学库的所有函数名
    help(math.XXX)

6.逻辑运算符
and
or
not

  1. import math 相当于 #include

猜你喜欢

转载自blog.csdn.net/qq_37689106/article/details/81590430