zoukankan      html  css  js  c++  java
  • python_process(0)

    KeyWord :  Pycharm2018.02   Python 3.7  

    说明:

    本篇并非文章,内容较多,结构未做整理,   以模块写,尽量保证每个模块内容完整性。

    模块以分割线划分,尽量格式保持一致。   内容多次写入以及更新,会有局部有重复。

    1------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    1.三元运算

    result = value1  if 条件 else value2 

    eg.

    a = 1    b = 2     c = 3

    result = a if a>b else c

    print(result)

    >> 3

    说明:三元运算主要是简单方便,使用时注意其格式。

    2------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

     2.bytes与string 之间的转换

     bytes 与string

    3 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    4------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    5------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


    6------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


    7------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


    8------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

  • 相关阅读:
    python 模块和包以及他们的导入关系
    python time,random,os,sys,序列化模块
    python 可迭代对象,迭代器和生成器,lambda表达式
    python之拷贝(深浅)
    python 内置函数
    python 函数的递归
    python 装饰器
    python 函数基础知识整理
    @清晰掉 string.h之基础堵漏
    C和C++之间库的互相调用
  • 原文地址:https://www.cnblogs.com/caochucheng/p/9610175.html
Copyright © 2011-2022 走看看