01 2022 档案
摘要:def hello(name): print("Hello "+name) def bye(): print(" Program is over ") def max(a,b): if a>b: print('a',a) else: print('b',b) def change(a): print
阅读全文
摘要:
>>> import random >>> random.choice(['apple', 'pear', 'banana']) #从给定列表中选择一个 'apple' >>> random.sample(range(100), 10) # sampling without replacement
阅读全文

摘要:
>>> import re >>> re.findall(r'\bf[a-z]*', 'which foot or hand fell fastest') 在python命令行窗口输入以上命令,会出现一个列表['foot','fell','fastest'],这个结果是根据第一个参数在第二个参数字符
阅读全文

摘要:#Filename:support.py def print_func(p): print("Hello: ",p) return #FileName test.py import support print('引入support.py中的自定义函数')support.print_func("Run
阅读全文
摘要:vscode可以支持好多种语言,今天我用它来编辑python,新建文件的时候它让你选择一种语言,我选择了已经安装在电脑C盘上python3.6,选择以后就可以运行了。
阅读全文
摘要:下周四、五(元月13、14号)初一二考试,今天我排了初二考号。
阅读全文
摘要:jQuery实现为一个P元素增加或删除样式类
阅读全文