Python
8yyy
这个作者很懒,什么都没留下…
展开
-
Python学习笔记
1.python不支持n++这种写法。 2.python print 默认换行 end=""可以去取消换行 循环 For Loops for item in "Python": print(item) for item in ["23", "24", "WHI"]: print(item) for item in range(10): # 输出0~9 print(item) for item in range(5, 10): # 输出5~9 print(item) fo原创 2021-05-03 21:13:30 · 120 阅读 · 0 评论 -
字符串(Strings)
一、 字符串(Strings) course_one = "python for 'beginners'" # 0123456789 # -1 course_two = 'python for "beginners"' course_three = ''' hi john 233 thank you ''' # 多行字符串 print('course_one:'+course_one) print('course_.原创 2021-05-02 14:36:27 · 135 阅读 · 0 评论