V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
hexdecode
V2EX  ›  微软

微软 PowerAutomate 问题

  •  
  •   hexdecode · 176 天前 · 474 次点击
    这是一个创建于 176 天前的主题,其中的信息可能已经有所发展或是发生改变。
    4 条回复    2023-11-09 17:27:04 +08:00
    Tumblr
        1
    Tumblr  
       176 天前
    简单试了一下,貌似是没问题的。逻辑就是:
    1. 先定义几个变量:高温、低温、单位(单位可以不定义,直接用 string 也行)
    2. 判断输出结果单位是华氏还是摄氏,如果是华氏,则进行转换;如果是摄氏,就直接赋值。转换是这样子:
    mul(sub(int(outputs('TempHCal')), 32), 0.5556)
    结果是这样子(可以用 int 做一下取整):
    High of 29.4468°C and low of 22.7796°C. 13% chance of rain.
    hexdecode
        2
    hexdecode  
    OP
       176 天前
    @Tumblr 感谢老哥🙏!可以分享一下您的链接吗 学习一下👏🏻
    Tumblr
        3
    Tumblr  
       176 天前
    @hexdecode #2 我测完直接删了,没有保留。
    hexdecode
        4
    hexdecode  
    OP
       176 天前
    @Tumblr 哈哈哈哈 好的!老哥!目前已经解决啦
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2115 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 16:00 · PVG 00:00 · LAX 09:00 · JFK 12:00
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.