- 博客(5)
- 收藏
- 关注
原创 Python编程从入门到实践第七章
第七章#7.1动手试一试message_1 = input("Let me see if I could find you a ")print(message_1)name = input("Please input your name: ")print(name)print(f"hello,{name.title()}")age = input("Please input your age: \n")#可以把输入的名称转到下一行print(age)#print(age)#print(a
2020-10-29 21:02:40
280
原创 《Python编程从入门到实践》第六章
第六章开始把一些需要注意的点写进注释里了。#在2020.10.23至2020.10.25结束之前完成第六章的学习alien_0 = {'color':'green','points':5}print(alien_0['color'])print(alien_0['points'])new_points = alien_0['points']print(f"you have earned {new_points}\tpoints\t!")alien_0['x_position'] = 0#往字典
2020-10-23 21:39:56
247
原创 Python编程从入门到实践第五章学习过程及课后练习
学习过程及课后练习cars = ['audi','bmw','subaru','toyota']for car in cars: if car == 'bmw': print(car.upper()) else: print(car.title())middle_number = 27if middle_number != 28: print(f"I guess the number is 28,but it is {middle_number}")if middle_number
2020-10-20 20:00:20
238
原创 python编程从基础到实践第四章
课堂学习students = ['贾克斯','科加斯','拉克丝','金克斯','吉格斯']#unexpected indent,不必要的缩进 #print(students)for student in students: print(student) #expected an indented block:期望一个缩进的块maginc = ['alice','jiakesi','kejiasi','jinkesi','jigesi']for people in maginc: print
2020-10-18 16:18:39
253
原创 Python编程从入门到实践(学习备忘)
本次学习起始于2020年10月17日,起因是想要学习人工智能,把Python作为基础工具。Python编程从入门到实践第二章:变量和简单的数据类型1.Python的变量始终记录最新值2.变量命名规则1)变量只能包含字母、数字、下划线,变量名只能以字母和下划线打头2)变量名不能包含空格,要使用下划线来分隔单词3)不把Python关键字和函数名用作变量名4)谨慎使用小写字母i和o,以及数字0和13.字符串的使用1)修改字符串大小写在这里插入代码片name='you know the bes
2020-10-17 14:17:44
709
4
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅