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------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

  • 相关阅读:
    XGBoost原理解析
    变分贝叶斯学习(variational bayesian learning)及重参数技巧(reparameterization trick)
    Tensorflow Probability Distributions 简介
    树形dp--hdu 1520 anniversary party
    线段树II--区间修改
    leetcode---different ways to add parentheses
    线段树
    实现最大堆
    编写支持对齐分配的malloc和free函数
    指针和引用的区别,指针和数组的区别
  • 原文地址:https://www.cnblogs.com/caochucheng/p/9610175.html
Copyright © 2011-2022 走看看