摘要: 转自牛人: https://www.cnblogs.com/ddzj01/p/10919210.html 1. __name__=='__main__'是干啥的 先看例子,准备a.py和b.py放在同一个文件夹中vi a.py 01 02 03 04 05 # coding: utf-8 print 阅读全文
posted @ 2019-12-16 14:10 zhengzhenhu 阅读(833) 评论(0) 推荐(0) 编辑
摘要: 转自高手:https://www.cnblogs.com/ddzj01/p/10927054.html ^在正则表达式中有两个作用,一是表达以什么开头,二是表达对什么取反。有时候经常傻傻的分不清楚,接下来给大家详细介绍该怎么用这个^准备一个python文件test.py,借用re.search函数举 阅读全文
posted @ 2019-12-16 13:32 zhengzhenhu 阅读(5153) 评论(1) 推荐(0) 编辑
摘要: 转自:本文链接:https://blog.csdn.net/wxy_csdn_world/article/details/80759915 if __name__=='__main__': a,c=map(int,input("Please enter 2 numbers: ").split()) 阅读全文
posted @ 2019-12-16 11:02 zhengzhenhu 阅读(1341) 评论(0) 推荐(0) 编辑