会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
as_scheduled
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
2020年10月18日
学习python的day6之字典与集合
摘要: 一、字典 1.特点: 1.字典的符号是大括号 2.数据以键值对形式出现 3.各键值对用逗号分隔 创建字典 有数据的字典 dict1 = {'name':'张山','age':'19','sex':'男' } 空字典 dict2 = {} dict3 = dict{} 注意:冒号前面的key是键,冒号
阅读全文
posted @ 2020-10-18 16:26 as_scheduled
阅读(151)
评论(0)
推荐(0)
2020年10月17日
学习python的day5之列表和元组
摘要: 一、列表 1介绍 1.1)列表一次性可以存多个数据 1.2)列表存的数据可以是不同的数据类型 1.3)对列表的操作:增、删、改、查。 2.数据操作 2.1)查找 2.1.1按下标查找 list1 = ['tom', 'lili', 'siri'] print(list1[0]) print(list
阅读全文
posted @ 2020-10-17 19:36 as_scheduled
阅读(157)
评论(0)
推荐(0)
2020年9月15日
学习python的day4之字符串
摘要: 1.认识字符串 字符串的定义方法 a = '1.hello pyhton!' print(a) print(type(a)) a1 = '2.hello ' \ 'pyhton!' #单引号回车会加上一个转义字符,程序才不会报错 print(a1) print(type(a1)) b = "3.he
阅读全文
posted @ 2020-09-15 00:39 as_scheduled
阅读(248)
评论(0)
推荐(0)
2020年9月2日
学习python的day3之if、while、for
摘要: 一、循环 在python中,循环分为while循环和for循环两种,两种循环的最终实现效果相同 循环的作用是为了让代码更高效的重复执行 1.1while循环语句 语法格式: while 条件语句: 循环体1 循环体2 ...... #需求:输出五次hello python! i = 0 while
阅读全文
posted @ 2020-09-02 23:36 as_scheduled
阅读(302)
评论(0)
推荐(0)
2020年8月28日
学习python的day2之数据转换和运算符
摘要: 1.输入 语法:input('提示信息') 注意:input()接收到的数据都是字符串 password = input('请输入密码:') print(f'你的密码是{password}') print(type(password)) 2.转换数据类型 int(x):将数据类型转换为int型 nu
阅读全文
posted @ 2020-08-28 23:47 as_scheduled
阅读(153)
评论(0)
推荐(0)
2020年8月27日
学习python的day1之变量和数据类型
摘要: 1.注释 python的的注释方式有单行注释,有多行注释 单行注释(用#注释): #单行注释 print('hello python!') 多行注释: 1)用6个单引号注释 ''' 多行注释 6个单引号 ''' print('hello word!') 2)用6个双引号注释 """ 多行注释 6个双
阅读全文
posted @ 2020-08-27 23:36 as_scheduled
阅读(133)
评论(0)
推荐(0)
2020年4月7日
html、css/个人主页
摘要: <!-- edu_sx_1.html --><!DOCTYPE html><html> <head> <meta charset="utf-8"> <title>张裕忠自我简介</title> <style type="text/css"> *{ margin: 0; padding: 0; } .
阅读全文
posted @ 2020-04-07 23:03 as_scheduled
阅读(792)
评论(0)
推荐(0)
上一页
1
2
公告