50,180)# 左一#time.sleep(2)deffigure2():# turtle.reset()turtle.tracer(False)rose()yellowhear...
date=datetime.date(month=1,day=1) print(date) 输出: TypeError Traceback (most recent call last) <ipython-input-3-7da76b18c6db> in <module> ---> 1 date=datetime.date(month=1,day=1) 2 print(date) TypeError: function missing required argument 'year' (pos 1) 时间对象 为了在 Pytho...
forcellinrow.cells:print(cell.text)# 写入Word文档doc.add_paragraph("Hello World")doc.save("...
foriinrange(1,12): li.append('python%s'%i) print(li) 执行输出,效果同上 上面的代码,可以一行搞定 用列表推导式就可以了 用列表推导式能构建的任何列表,用别的都可以构建,比如for循环 特点: 1.一行,简单,感觉高端,但是不易排错 使用debug模式,没法依次查看每一个值。 第一个例子 1 2 li=[iforiinra...
/usr/local/bin/python3.8 /Users/用户名/Documents/Python/workspace/untitled/day1/one.py hello world! Process finished with exit code 0 1. 2. 3. 4. 2.Pycharm基本设置 file---setting 外观 字体 1. 2. 3. 修改解释器 project-code --interpreter ...
dict={name:brenden,code:410012,dept:sales};4.集合 集合(set)是一个无序且包含不重复元素的数据类型。基本功能是进行成员关系测试和消除重复元素。可以使用大括号或者set()函数创建集合类型,注意:创建一个空集合必须用set()而不是{},因为{}是用来创建一个空字典。 student={Tom,Jim,Mary,Tom,Jack,Rose};P...
{'name': 'jack', 'age': 22, 'name1': 'rose', 'age1': 21} **kwargs只限于字典类型 在函数的调用执行时, *可迭代对象,代表打散(list,tuple,str,dict(键))将元素一一添加到args。 **字典,代表打散,将所有键值对放到一个kwargs字典里。
200-公共方法-05-完整的for循环-for else 05:39 201-公共方法-06-利用for else搜索字典列表-for else 13:29 202-名片管理-01-明确目标及备课代码演示 07:47 203-框架搭建-01-框架介绍及系统架构分析 05:57 204-框架搭建-02-新建项目准备文件 02:01 205-框架搭建-03-用户输入判断和pass关键字 08:45 206...
...() 语法:字典序列.values() 作用:查找字典中所有的value,返回可迭代对象(可跌迭代对象就是可以用for遍历的对象)快速体验: dict1 = {'name': 'Rose', 'age...-- 2.4 items() 语法:字典序列.get(key, 默认值) 作用:查找字典中所有的键值对,返回可迭代对象,里面的数据是元组,元组数据1是字典的ke...
rose harry openup pandora pussys trucker wallace indigo storm malibu weed review babydoll doggy dilbert pegasus joker catfish flipper valerie herman fuckit detroit kenneth cheyenne bruins stacey smoke joey seven marino fetish xfiles wonder stinger pizza babe pretty stealth manutd gracie gundam cessna ...