avatar
文章
36
标签
24
分类
10
主页
归档
  • 时间线
  • 标签
  • 分类
音乐
视频
游戏
留言板
微光闲话
友链
关于
Logo微光zc的网络小窝
主页
归档
  • 时间线
  • 标签
  • 分类
音乐
视频
游戏
留言板
微光闲话
友链
关于

微光zc的网络小窝

python 学习第六天
发表于2023-04-10|Python 12天速学
python 学习123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183#python面向对象编程#类的创建#类:具有共同特征的事件的集合#例:人Person类#类的...
python 学习第五天
发表于2023-04-09|Python 12天速学
python 学习1234567891011121314151617181920212223242526272829303132333435363738394041424344454647#文件操作和数据格式化 #加b表示二进制 #加+表示读写#r rb r+ rb+ #开头写入#w wb w+ wb+ #覆盖写入#a ab a+ ab+ #结尾写入#语法fileobject=open(file_name[access_mode][buffering])#打开文件fa=open("D:\\text.txt","rb")print(fa.readline())fa.close()#关闭文件fa=open("D:\\text.txt","wb")print("Name of the file:",fa.name)fa.close()#file.close ...
python 学习第四天
发表于2023-04-08|Python 12天速学
python 学习12345678910111213141516171819202122232425#参数传递及函数调用范例def say(name='python',time=3): i=1 while i<=time: print(name,end=' ') i+=1 print()say() #两个参数都使用默认值say('hello') #第一个参数传入函数,第二个默认值say(5) #第一个参数传入函数,第二个默认值say('hello',5) #不用默认值#输出两位同学成绩及平均成绩,保存为funVarArgs.pydef garde(name,num,*scores): print(name+":",end='') print("{}门成绩为:&q...
python 学习第三天
发表于2023-04-07|Python 12天速学
python 学习123456789101112131415161718192021222324252627282930313233343536373839#条件if语句year=int(input("请输入年份:"))day=28if(year%4==0 and year%100!=0)or year%400==0: day=29print("{0}年二月有{1}天".format(year,day))"""if(): elif<>: [else:<>]"""#循环while语句num=0str="student"while num<len(str): if str[num]=='u': break print("循环进行中:"+str[num]) num=num+1else: str="...
python 学习第二天
发表于2023-04-06|Python 12天速学
python 学习12345678910111213141516171819202122232425262728293031323334353637383940a=15if(a>10 and a<100)or(a<-10 and a>-100): print("BINGO")s="青青子衿,悠悠我心。"print(s[5])print(s[2:4])print(s[:4])print(s[5:])print(s[8:4])"{:25}".format(s) #左对齐,默认"{:1}".format(s) #指定宽度为1,不足变量s的宽度"{:^25}".format(s) #居中对齐"{:>25}".format(s) #右对齐"{:*^25}".format(s) #居中对齐且填充*y=0z=...
python 学习第一天
发表于2023-04-05|python 12天速学
python 学习123456789101112131415161718192021222324252627282930313233343536373839404142#eval函数用法a=eval("1.2")b=eval("1.2+3.4")pybook=123c=eval("pybook")d=eval("'pybook'")print(a)print(b)print(c)print(d)print(["a","b","c"])print(d,d,d)print(d,end="")print("数字{}和数字{}的乘积是{}".format(a,b,a*b))print("数字{2}和数字{1}的乘积是{0}".format(a,b,a*b...
1…34
avatar
微光zc
一个有想法的极客
文章
36
标签
24
分类
10
关注我!
公告
世界全剧终,欢迎来到my blog!
最新文章
hexo+Butterfly主题安装sakana石蒜小组件2025-07-22
BeautifulSoup4总结2025-07-20
wireshark使用指南2025-07-10
Github搭建Hexo个人博客2025-06-29
GitHub搭建picgo图床2025-06-28
分类
  • GitHub2
  • Java学习14
  • Python1
  • Python 12天速学11
  • python1
  • python 12天速学1
  • 分类1
  • 博客1
标签
python爬虫BeautifulSoup总结picgo图床GitHubIP网址JavaIO安装博客Hexo速学通代码LombokButterflyhexosakanaMarkdown学习wireshark标签
归档
  • 七月 2025 3
  • 六月 2025 2
  • 三月 2025 1
  • 二月 2025 1
  • 一月 2025 7
  • 十二月 2024 1
  • 十一月 2024 5
  • 十月 2024 3
网站信息
文章数目 :
36
本站总字数 :
45.2k
本站访客数 :
本站总浏览量 :
最后更新时间 :
©2025 By 微光zc
世界全剧终,欢迎来到my blog!