摘要: 1 print(5 / 2) # 2.5 2 print(5 // 3) #1 取整除 3 print(5 % 3) #2 取余数(取模) 4 print(5 ** 2) #25 5的2次方 5 print(5 > 3) #True 6 print(3 > 5) #False 7 print(20 阅读全文
posted @ 2022-11-10 14:27 usolo 阅读(24) 评论(0) 推荐(0)
摘要: 1 print('hello world!') 2 print('hello','world!') #逗号自动添加默认的分隔符:空格 3 print('hello'+'world!') #加号表示字符拼接 4 print('hello','world',sep='***') #单词间用***分隔 5 阅读全文
posted @ 2022-11-10 08:46 usolo 阅读(36) 评论(0) 推荐(0)