摘要:open一个对象的时候,不确定他是图片还是文本啊 # import io with open('photo.jpg', 'rb') as inf: jpgdata = inf.read() if jpgdata.startswith(b'\xff\xd8'): text = u'This is a
阅读全文
摘要:1.使用 \ 将一行语句分为多行显示 statement = "hello world " + \ "this is my first time of creating blog in cnblogs " + \ "I am very excited" print(statement) output
阅读全文