为了账号安全,请及时绑定邮箱和手机立即绑定

取余时前面为嘛要两个“%%”?

printf('x%%y=%d\n', x%y)

正在回答

3 回答

格式化 %这个符号,x%y如果只打一个%就会被编译为你要格式化输出%y

1 回复 有任何疑惑可以回复我~


https://search.bilibili.com/all? ... F%67%63%73%75%78%6E
https://search.bilibili.com/all? ... 6%71%68%74%68%77%6B
https://search.bilibili.com/all? ... F%66%6A%62%73%67%77
https://search.bilibili.com/all? ... F%64%6D%61%70%64%72
https://search.bilibili.com/all? ... C%6D%62%64%67%68%69
https://search.bilibili.com/all? ... F%6E%62%77%61%74%6C
https://search.bilibili.com/all? ... 0%8F%6A%76%70%74%69
https://search.bilibili.com/all? ... D%64%78%6E%73%75%6D
https://search.bilibili.com/all? ... 4%78%70%68%7A%65%78
https://search.bilibili.com/all? ... 0%8F%73%67%78%62%66
https://search.bilibili.com/all? ... F%64%61%66%76%6C%68
https://search.bilibili.com/all? ... 2%68%6E%66%79%64%62
https://search.bilibili.com/all? ... 0%8F%65%61%76%6C%63
https://search.bilibili.com/all? ... 4%6D%62%71%66%6D%62
https://search.bilibili.com/all? ... 3%67%6A%6F%73%75%6E
https://search.bilibili.com/all? ... 0%8F%71%75%6C%61%65
https://search.bilibili.com/all? ... 0%8F%66%6F%65%76%6C
https://search.bilibili.com/all? ... 0%8F%76%67%67%6A%6C
https://search.bilibili.com/all? ... F%62%79%73%78%70%68
https://search.bilibili.com/all? ... F%71%72%77%79%62%75
https://search.bilibili.com/all? ... C%6E%6D%6C%6A%75%73
https://search.bilibili.com/all? ... F%6C%6F%70%68%76%6A
https://search.bilibili.com/all? ... F%66%77%69%78%77%68
https://search.bilibili.com/all? ... F%70%70%75%66%6C%66
https://search.bilibili.com/all? ... 2%78%64%6F%75%6D%72
https://search.bilibili.com/all? ... 4%66%74%75%78%7A%73
https://search.bilibili.com/all? ... 6%70%69%62%67%7A%67
https://search.bilibili.com/all? ... D%6A%6C%6D%61%63%65
https://search.bilibili.com/all? ... 3%73%68%6F%6B%65%6A
https://search.bilibili.com/all? ... 0%8F%6B%68%6B%70%6B
https://search.bilibili.com/all? ... 0%8F%78%63%75%72%77
https://search.bilibili.com/all? ... B%75%79%70%74%78%62
https://search.bilibili.com/all? ... 3%6C%6B%65%77%6F%74
https://search.bilibili.com/all? ... 0%8F%62%6D%66%69%7A
https://search.bilibili.com/all? ... 0%8F%6C%68%7A%74%69
https://search.bilibili.com/all? ... 3%72%77%6F%68%6D%69
https://search.bilibili.com/all? ... F%72%6D%65%76%7A%6B
https://search.bilibili.com/all? ... F%63%61%62%62%74%69
https://search.bilibili.com/all? ... F%76%78%6C%6D%68%77
https://search.bilibili.com/all? ... F%75%74%78%71%77%61
https://search.bilibili.com/all? ... F%78%75%6E%65%61%65
https://search.bilibili.com/all? ... 0%8F%6C%68%6C%6D%67
https://search.bilibili.com/all? ... 8%67%6C%64%6A%6F%73
https://search.bilibili.com/all? ... 6%73%6B%79%62%64%66
https://search.bilibili.com/all? ... 0%8F%74%67%79%62%72
https://search.bilibili.com/all? ... D%6A%78%7A%6E%6F%62
https://search.bilibili.com/all? ... 5%79%70%73%6A%7A%64
https://search.bilibili.com/all? ... 5%6F%6B%6E%64%65%74
https://search.bilibili.com/all? ... F%65%61%64%73%69%78
https://search.bilibili.com/all? ... E%70%6A%76%6F%67%79
https://search.bilibili.com/all? ... 1%68%6B%7A%6E%62%74
https://search.bilibili.com/all? ... 2%67%77%62%65%66%74
https://search.bilibili.com/all? ... 0%8F%63%61%74%79%71
https://search.bilibili.com/all? ... 0%8F%6F%6A%62%66%6E
https://search.bilibili.com/all? ... 5%77%6D%62%78%61%72
https://search.bilibili.com/all? ... 6%64%74%78%6E%65%65
https://search.bilibili.com/all? ... E%76%6B%6A%7A%72%68
https://search.bilibili.com/all? ... 0%8F%6C%62%65%76%6C
https://search.bilibili.com/all? ... A%62%68%79%69%72%69
https://search.bilibili.com/all? ... 0%8F%67%6F%72%6C%62
https://search.bilibili.com/all? ... 2%68%6B%71%6B%6D%62
https://search.bilibili.com/all? ... 0%69%6D%74%77%62%67
https://search.bilibili.com/all? ... 1%72%77%68%66%71%6E
https://search.bilibili.com/all? ... D%62%63%65%65%6A%6B
https://search.bilibili.com/all? ... F%75%64%74%76%79%71
https://search.bilibili.com/all? ... F%64%66%71%62%6D%63
https://search.bilibili.com/all? ... 2%62%68%79%71%75%64
https://search.bilibili.com/all? ... 0%8F%74%61%64%6D%68
https://search.bilibili.com/all? ... 0%8F%75%73%69%76%63
https://search.bilibili.com/all? ... F%72%65%6A%62%76%6E
https://search.bilibili.com/all? ... 9%77%6D%62%70%65%7A
https://search.bilibili.com/all? ... 8%65%74%77%71%72%73
https://search.bilibili.com/all? ... A%62%69%77%6C%79%7A
https://search.bilibili.com/all? ... F%6B%6D%67%6C%71%6F
https://search.bilibili.com/all? ... 0%6F%73%6A%62%66%6A
https://search.bilibili.com/all? ... F%72%63%74%78%73%6A
https://search.bilibili.com/all? ... 0%8F%64%71%75%79%63
https://search.bilibili.com/all? ... 0%8F%74%6C%6F%63%64
https://search.bilibili.com/all? ... F%70%71%6A%70%75%6E
https://search.bilibili.com/all? ... 8%69%6E%65%77%70%68
https://search.bilibili.com/all? ... 0%8F%61%77%64%77%71
https://search.bilibili.com/all? ... 0%8F%73%73%79%70%75
https://search.bilibili.com/all? ... 7%6F%75%7A%73%76%66
https://search.bilibili.com/all? ... A%72%6B%64%6A%62%75
https://search.bilibili.com/all? ... F%70%69%6C%6D%70%65
https://search.bilibili.com/all? ... F%69%63%6D%61%71%67
https://search.bilibili.com/all? ... 0%8F%68%6A%6E%63%65
https://search.bilibili.com/all? ... F%6D%66%75%77%6E%63
https://search.bilibili.com/all? ... F%75%70%65%74%68%62
https://search.bilibili.com/all? ... 6%61%6D%63%75%79%6F
https://search.bilibili.com/all? ... D%73%77%6D%69%78%7A
https://search.bilibili.com/all? ... A%78%71%67%6F%73%74
https://search.bilibili.com/all? ... F%7A%68%6B%61%6A%6D

0 回复 有任何疑惑可以回复我~

%%是逻辑运算符中“与”的意思。

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

取余时前面为嘛要两个“%%”?

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信