本文整理匯總了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...')