1024致敬程序员

2021-09-29 16:13:20 浏览数 (1)

程序员

冷静的思维,点亮智慧的殿堂;抽象的理念,交汇灵感的火花;平凡的字符,串起别样的精彩;细腻的语言,盘活冰冷的程序;非凡的才华,改变着五彩缤纷的世界。

  • 深度的思考,让灵感突发;
  • 细致的观察,让智慧闪光;
  • 跳动的字符,让程序鲜活;
  • 有序的排列,让效率提高;
  • 不断的改善,让价值突显;
  • 不断的编撰,让生命精彩。

在此编写 1024代码 为我自己留下纪念

代码语言:javascript复制
# -*- coding:utf-8 -*-
"""
@Author   :Hui
@Desc     :{1024程序员节}
@time     :2020/10/24
"""
import math
import time


def func_1024():
    """Python中1024的显示"""

    result = [
        int(math.pow(2, 10)),
        2 ** 10,
        '1024',
        bin(1024),
        oct(1024),
        1024,
        hex(1024),
        time.strftime('%m%d'),
        'n'.join([''.join([('1024'[(x - y) % 4] if ((x * 0.05) ** 2   (y * 0.1) ** 2 - 1) ** 3 - (
                x * 0.05) ** 2 * (y * 0.1) ** 3 <= 0 else ' ') for x in range(-30, 30)]) for y in
                   range(15, -15, -1)])

    ]

    for res in result:
        print(res)


def main():
    func_1024()


if __name__ == '__main__':
    main()
代码语言:javascript复制
1024
1024
1024
0b10000000000
0o2000
1024
0x400
1024
                                                            
                                                            
                                                            
                241024102           241024102               
            41024102410241024   41024102410241024           
          24102410241024102410241024102410241024102         
         2410241024102410241024102410241024102410241        
        241024102410241024102410241024102410241024102       
        410241024102410241024102410241024102410241024       
        102410241024102410241024102410241024102410241       
        024102410241024102410241024102410241024102410       
        241024102410241024102410241024102410241024102       
        410241024102410241024102410241024102410241024       
         0241024102410241024102410241024102410241024        
          41024102410241024102410241024102410241024         
          10241024102410241024102410241024102410241         
            4102410241024102410241024102410241024           
             02410241024102410241024102410241024            
              410241024102410241024102410241024             
                24102410241024102410241024102               
                  0241024102410241024102410                 
                    102410241024102410241                   
                       102410241024102                      
                          102410241                         
                             102                            
                              2                             

1024程序员节,向每一位用代码改变世界的程序员致敬。

0 人点赞