• 使用sublimehighlight 将文本 转化html


     

    a = "aaa"
    
    b = "bbb"
    c = "ccc"
    
    final = a + b + c 
    
    print final
    
    import sys
    print(sys.version)
    print("hello world ~")
    
    import os
    print(os.defpath)
    
    name = """sdfsdfsdf
            hello
        python
    """
    print(name)
    
    print("10//3 = ",10 // 3)
    print("5**3 = ",5 ** 3)
    print("5%3 = ",5 % 3)
    print("14/3 = ",14 / 3)
    print("=%s" % 12)
    
    charA = 65
    charB = 66
    
    print("ASCII码65代表:%c" % charA)
    print("ASCII码66代表:%c" % charB)
    Num1 = 0xEF3
    Num2 = 0xAB03
    print('转换成十进制分别为:%u%u' % (Num1, Num2))
    Num3 = 1200000
    print('转换成科学计数法为:%e' % Num3)
    
    quote=""Always remember you are unique"
    multi_line_quote=''' just 
            like everyone else'''
    new_string=quote+multi_line_quote
    
    print("%s%s%s" % ('i like ',quote,multi_line_quote))
    
    
    grocery_list=["a","b","c","d","e"]
    other_events=['car','phone','bed','cat','pig','dog']
    print("the first one is %s" % grocery_list[0])
    print(other_events[3:6])
    
    to_do_list=[grocery_list,other_events]
    
    print(to_do_list)
    
    print(to_do_list[0:1][1:4])
    print(to_do_list[1:3])
    
    print(to_do_list[0][0])
    print(to_do_list[0][1])
    print(to_do_list[0][2])
    
    print(to_do_list[1][0])
    print(to_do_list[1][1])
    print(to_do_list[1][2])
    
  • 相关阅读:
    #include 和 #pragma comment 的相对路径起点
    linux学习之——phpMyadmin配置
    linux学习之——LAMP配置
    python学习之——文件过滤,不显示文件中以‘#’开头的行
    python学习之——元组中两数相加之和等于某数
    python学习之——识别标识符&关键字
    python学习之——single number
    python学习之——Add Digits
    python学习之——猜大小
    python学习之——冒泡排序
  • 原文地址:https://www.cnblogs.com/luquanmingren/p/5337606.html
Copyright © 2020-2023  润新知