![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
蘑菇丁
每份经历,不管是顺境还是坎坷,都会增加生命的厚度。
世界很小,请带着梦想一起奔跑。
世界很大,请带着坚持努力成长!
勇于挑战,不断突破自我!加油!!!
建了一个大数据运维群,各位大数据运维的同学可以一起讨论 群号584912368
https://github.com/liangjingbin99/shouhuo/tree/master/%E7%AC%AC02%E7%AB%A0
展开
-
airflow ImportError: No module named hive_metastore
python Python 2.7.5 (default, Oct 30 2018, 23:45:53) [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import airfl...原创 2019-10-15 11:32:51 · 908 阅读 · 0 评论 -
python2 和python3如何实现 将输出打印在同一行
python3 print("Mary had a little lamb.") print("It fleece was white as %s." % 'snow') print("And everywhere that Mary went.") print("." * 10 )# what'd that do? end1 = "C" end2 = "h" end3 = "e" end4 =...原创 2019-03-28 11:39:08 · 5346 阅读 · 0 评论 -
python如何取前一天和上一年
import time, os import datetime def getYesterday(): today = datetime.date.today() oneday = datetime.timedelta(days=1) yesterday = today - oneday return yesterday def getCurrentYear():...原创 2019-04-11 14:10:14 · 3857 阅读 · 0 评论 -
笨办法学python习题21-26
#习题 21:函数可以返回东西 def add(a,b): print("ADDING %d + %d" % (a,b)) return a + b def subtract(a,b): print("SUBTRACTING %d - %d" % (a,b)) return a - b def multiply(a,b): print("MULTIPLY...原创 2019-04-02 14:43:55 · 861 阅读 · 0 评论 -
笨办法学python习题1-10
#第一个程序 # -*- coding: utf-8 -*- print('Hello World!') print("Hello Again") print("I like typing this.") print("This is fun.") print('Yay ! Printing.') print("I'd much rather you 'not'.") print('T "sai...原创 2019-03-29 10:31:04 · 914 阅读 · 0 评论 -
笨办法学python习题11-20
练习十一:提问 print("How old are you?",end='') age = input() print("How tall are you?",end='') height = input() print("How much do you weigh?",end='') weight = input() print("So, you're %r old,%r tall and...原创 2019-03-29 13:32:10 · 646 阅读 · 0 评论 -
笨办法学python习题31-35
#习题31:做出决定 print("You enter a dark room with two doors.Do you go through door #1 or door #2?") door = input(">") if door =="1": print("There's a giant bear here eating a cheese cake.What do y...原创 2019-04-03 16:12:37 · 520 阅读 · 0 评论 -
笨办法学python习题39-40
#习题39 列表的操作 ten_things = "Apples Oranges Crows Telephone Light Sugar" print("Wait there's not 10 things in that list,let's fix that.") stuff = ten_things.split(' ') more_stuff = ["Day","Night","So...原创 2019-04-09 18:12:48 · 461 阅读 · 0 评论