随笔分类 -  Python

摘要:临时指定 # 阿里云源(推荐) pip install numpy -i https://mirrors.aliyun.com/pypi/simple/ # 或清华源 pip install numpy -i https://pypi.tuna.tsinghua.edu.cn/simple/ # 如 阅读全文
posted @ 2025-12-14 16:03 壹点灵异 阅读(11) 评论(0) 推荐(0)
摘要:格式化打印 print("***{}".format(args)) 格式化转换 module = "skull" print "MODULE_{}".format(module.upper()) 格式化输出,八进制3位有效数高位补零 intvar = 9 print "{:03o}".format( 阅读全文
posted @ 2022-05-06 18:03 壹点灵异 阅读(92) 评论(0) 推荐(0)