• 使用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])
    
  • 相关阅读:
    docker---基本操作
    one_day_one_linuxCmd---netstat命令
    docker---Dockerfile编写
    one_day_one_linuxCmd---sz命令
    one_day_one_linuxCmd---scp命令
    同义英语词汇整理
    网络实习——校园网络设计方案
    实现 FTP 客户端和服务器程序所调用的系统函数
    2020年上半年总结
    单片机的串行总线拓展技术
  • 原文地址:https://www.cnblogs.com/androllen/p/5337606.html
Copyright © 2020-2023  润新知