本文整理汇总了Python中Input.get_humidity方法的典型用法代码示例。如果您正苦于以下问题:Python Input.get_humidity方法的具体用法?Python Input.get_humidity怎么用?Python Input.get_humidity使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Input
的用法示例。
在下文中一共展示了Input.get_humidity方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: add_data
# 需要导入模块: import Input [as 别名]
# 或者: from Input import get_humidity [as 别名]
def add_data():
date = Input.get_date()
temp = Input.get_temp()
preasure = Input.get_preasure()
humidity = Input.get_humidity()
wspeed = Input.get_wspeed()
wdirect = input('Enter wind direction (eg. SW or S): ')
prec = input('Enter precipitations (eg. Rain or Snow): ')
tmp = {date: [temp, preasure, humidity, wspeed, wdirect, prec]}
weather.update(tmp) # rewrite data that already exsist
Open_file.save_data(weather, Configs.get_type()) # save changes in file
input('Press Enter to continue...')
示例2: add_data
# 需要导入模块: import Input [as 别名]
# 或者: from Input import get_humidity [as 别名]
def add_data():
#add data to our weather diary#
date = Input.get_Date()
temp = Input.get_temp()
preasure = Input.get_preasure()
humidity = Input.get_humidity()
wspeed = Input.get_wspeed()
wdirect = input('Enter wind direction (eg. SW or S): ')
prec = input('Enter precipitations (eg. Rain or Snow): ')
tmp = {date:[temp, preasure, humidity, wspeed, wdirect, prec]}
#rewrite data that already exsist
weather.update(tmp)
#save changes in file
Open_file.save_data(weather)
tmp = input('Adding/Editing Successful. Press Enter to continue...')