自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(6)
  • 收藏
  • 关注

原创 task 7

码一下,晚上更新最全笔记

2022-03-05 11:16:18 92

原创 Task 6

先码着,具体笔记明天补

2022-03-01 23:32:39 84

原创 Task 5 编程习惯养成与思维

今天的代码比较简单,如下。# 养成编写防御性编码的习惯# 例:我想找到某个整数的所有除数,想弄清楚所有的除数是什么,选择了在循环中间打印出来。x = 10i = 1while i <= x: if x%i == 0: print('divisor',i) i = i + 1以上是防御性编程的样例,即避免在代码编写过程中出现错误发生重大不可估量后果。How to read code fastly and repair others code?1.

2022-02-28 23:58:11 77

原创 Task4 函数

老规矩,先上代码(具体笔记以及后续代码详解总结明天补)# this is one like your scripts with argvdef print_two(*args): arg1,arg2 = args print(f"arg1:{arg1}, arg2:{arg2}")# ok,this *args is actually pointless, we can just do thisdef print_two_again(arg1, arg2): print

2022-02-24 23:46:06 208

原创 Task3 字典、元组、布尔类型、读写文件

具体笔记emmmmm每天再补,有点多,打卡先。# 索引列表things = ['a','b','c','d']print(things[1])things[1] = 'z'print(things[1])print(things)#索引字典(dictionary) dict字典是大括号 而列表是中括号#列表只能用数字提取,而字典能用字符串,如下stuff = {'name': 'Zed','age': 39, 'height': 6 * 12 + 2 }print(stuff['.

2022-02-21 23:05:57 202

原创 Tsak2 数学运算、字符串、文本和列表

先上代码(ps.注释用#号)print("I will know count my chickens:")print("Hens",25+30/6)print("Roosters",100-25*3%4)print("I will count the eggs:")print(3 + 2 + 1 - 5 + 4 % 2 - 1 / 4 +6 )print("Is it true that 3 + 2 < 5 - 7?")print(3 + 2 < 5 - 7).

2022-02-18 16:01:20 314

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除