![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
hello_sunny123
这个作者很懒,什么都没留下…
展开
-
Python练习---大小写字母判断
‘’’ 小易喜欢的单词具有以下特征: 1.单词每个字母都是大写 2.单词没有连续相等的字母 ‘’’ word=input("请输入单词:") for i in range(len(word)): if word[i]<'A' or word[i]>'Z': print("不喜欢,单词不是大写!") break else: if i<len(word)-1 and word[i]==word[i+1]:原创 2021-02-03 10:54:22 · 2633 阅读 · 0 评论 -
建立学生管理系统
用pycharm显示系统时间 程序代码: import time from datetime import datetime if name == “main”: start_time = datetime.now() print(start_time) print(time.strftime("%Y-%m-%d %H:%M:%S",time.localtime())) 运行结果显示:原创 2020-11-02 16:04:28 · 537 阅读 · 0 评论