Fork me on GitHub

随笔分类 -  Python

摘要:结论: 在print函数前加上sys.stdout.flush()。 有的说加在print之后,都可以试试。 from time import sleep import sys if __name__=="__main__": sys.stdout.flush() print("Start") fo 阅读全文
posted @ 2024-03-11 16:04 猫叔Vincent 阅读(44) 评论(0) 推荐(0) 编辑
摘要:用python的时间转换函数,结果报错。想着这么基础的怎么会报错呢。 from datetime import datetime # timestamp is number of seconds since 1970-01-01 timestamp = 1545730073 # convert th 阅读全文
posted @ 2023-09-13 11:28 猫叔Vincent 阅读(187) 评论(0) 推荐(0) 编辑
摘要:今天使用python命令行出现 WARNING: You are using pip version 19.3.1; however, version 20.0.2 is available. You should consider upgrading via the 'python -m pip 阅读全文
posted @ 2020-03-28 12:38 猫叔Vincent 阅读(5731) 评论(0) 推荐(1) 编辑
摘要:前两天在网上偶然看到一个大佬OmegaXYZ写的文章,Python爬取微博文字与图片(不使用Cookie) 于是就心血来潮,顺手撸一个C#版本的。 其实原理也很简单,现在网上大多数版本都需要Cookie来获取微博数据。但是微博之前不是出了PWA版本嘛,就是通过这个版本,可以不用Cookie,来顺利获 阅读全文
posted @ 2020-03-07 15:59 猫叔Vincent 阅读(2402) 评论(3) 推荐(3) 编辑

点击右上角即可分享
微信分享提示