03 2023 档案

摘要:1.实验任务1 实验源码 task_1: #字符串的基础操作 x = 'nba FIFA' print(x.upper()) #字符串转大写 print(x.lower()) #字符串转小写 print(x.swapcase()) #字符串大小写翻转 print() x = 'abc' print( 阅读全文
posted @ 2023-03-22 20:51 desire666666 阅读(42) 评论(0) 推荐(0) 编辑
摘要:实验任务1 “关于print” task1_1:实验源码: #task1_1 print的使用 print('hey,u')#输出单个字符串或者单个变量 print('hey', 'u') x,y,z = 1,2,3 print(x,y,z)#输出多个数据项,用“,”隔开 print('x = %d 阅读全文
posted @ 2023-03-10 12:41 desire666666 阅读(82) 评论(0) 推荐(0) 编辑