笔记
文章平均质量分 80
Lily-
我也想紫名…
展开
-
2021-01-23
字节型编译 如果Python在系统中有写的权限,当程序运行时Python会把源码编译成字节码(与系统环境无关)存在一个.pyc扩展名文件中,如果没有修改源码而重新运行程序时,不会进行编译的步骤而使用字节码,可以优化运行速度。 变量、对象和引用 变量与对象是分开的,它们通过引用来建立连接,变量名是对象的引用。变量是一个系统表的元素,拥有指向对象连接的空间;对象是分配的一块内存,有俩个头部信息,一个类型标志符去标识这个对象的类型,一个是引用的计数器(回收机制);引用是自动形成的从变量到对象的指针。 通常x,y指原创 2021-01-23 22:38:21 · 157 阅读 · 0 评论 -
O - Vasya and String
Vasya and String High school student Vasya got a string of length n as a birthday present. This string consists of letters ‘a’ and ‘b’ only. Vasya denotes beauty of the string as the maximum length of...原创 2020-02-28 08:54:18 · 120 阅读 · 0 评论 -
U - Divisibility by Eight
You are given a non-negative integer n, its decimal representation consists of at most 100 digits and doesn’t contain leading zeroes. Your task is to determine if it is possible in this case to remove...原创 2020-02-26 23:20:38 · 139 阅读 · 0 评论