1.基本语法 2.基本属性 (1)href属性 链接的地址,链接的地址可以是一个网页,也可以是一个视频、图片、音乐等等 (2)target属性 作用:定义超链接打开的方式 属性值: _blank 在一个新的窗口中打开链接 _self(默认值) 在当前窗口中打开链接 _parent 在父窗口中打开页面 ...
分类:
Web程序 时间:
2019-08-03 10:32:08
阅读次数:
197
Problem I: Ingenious Lottery Tickets Your friend Superstitious Stanley is always getting himself into trouble. This time, in his Super Lotto Pick and ...
分类:
其他好文 时间:
2019-08-01 11:44:13
阅读次数:
108
# pcjclass Musicplay(object): id=None def __new__(cls, *args, **kwargs): if cls.id is None: cls.id=super().__new__(cls) #new是一个静态方法。所以要传cls参数 return c ...
分类:
其他好文 时间:
2019-07-31 23:50:52
阅读次数:
106
## isinstance(obj cls) 检查obj是否是cls的对象## issubclass(sub, super) 检测sub是否是super的派生类/子类```pythonclass Foo(object): passobj = Foo()print(isinstance(obj, Fo... ...
分类:
其他好文 时间:
2019-07-31 01:23:18
阅读次数:
107
# 集合是无序的 是可变的 不能重复 允许数学运算 分散存储# 创建# collegel = {'哲学','经济学','法学','教育学'}## # {'教育学', '经济学', '法学', '哲学'}# print(collegel)## # set# collegel2 = set(['金融学' ...
分类:
编程语言 时间:
2019-07-31 00:49:53
阅读次数:
118
URAL-1960.Palindromes and Super Abilities 传送门 ?题意 给你一个长度为 n 的字符串 s,下标从 1 开始; 输出 n 个数,第 i 个数表示 1~i 内有多少个本质不同的回文串; ?题解 回文自动机入门题; 定义 ans[ i ] 表示 1~i 共有 $ ...
分类:
其他好文 时间:
2019-07-30 21:54:04
阅读次数:
108
1 class A(object): 2 def __init__(self,*args, **kwargs): 3 print "init A" 4 def __new__(cls,*args, **kwargs): 5 print "new A %s"%cls 6 #return super(A ...
分类:
其他好文 时间:
2019-07-30 21:46:17
阅读次数:
104
https://blog.csdn.net/superKM/article/details/81013304 太方便了 <iframe src='https://view.officeapps.live.com/op/view.aspx?src=http://storage.xuetangx.com ...
分类:
Web程序 时间:
2019-07-30 12:28:36
阅读次数:
365
题目如下: 题面看着很简单,但小心有坑。 Java中方法的参数传递机制是值传递,所以不能简单的在 方法中使用 、`b 20`,可以参考。。。。。。 示例答案一:使用System.exit()终止虚拟机 示例答案二:重写打印流的println方法 ...
分类:
编程语言 时间:
2019-07-30 00:59:12
阅读次数:
156